mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-15 22:42:21 +01:00
testing/lua-event: select lua version with install_if
This commit is contained in:
parent
f4772207a7
commit
99241c94db
@ -5,7 +5,7 @@ _luaversions="5.1 5.2"
|
||||
pkgname=lua-event
|
||||
_n=${pkgname#lua-}
|
||||
pkgver=0.4.3
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Lua binding for libevent"
|
||||
url="https://github.com/harningt/luaevent"
|
||||
arch="all"
|
||||
@ -19,7 +19,6 @@ source="${url}/archive/v${pkgver}.tar.gz"
|
||||
for _i in $_luaversions; do
|
||||
makedepends="$makedepends lua${_i}-dev"
|
||||
subpackages="$subpackages lua${_i}-${_n}:_split${_i/./}"
|
||||
depends="$depends lua${_i}-${_n}"
|
||||
done
|
||||
|
||||
|
||||
@ -64,6 +63,7 @@ _split() {
|
||||
local d= _ver=$1
|
||||
pkgdesc="$pkgdesc - for Lua $_ver"
|
||||
depends=
|
||||
install_if="lua$_ver $pkgname=$pkgver-r$pkgrel"
|
||||
for d in usr/lib/lua usr/share/lua; do
|
||||
if [ -d "$pkgdir"/$d/$_ver ]; then
|
||||
mkdir -p "$subpkgdir"/$d
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user