diff options
author | Andy Li <andy@onthewings.net> | 2018-02-14 16:47:10 +0800 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-02-23 11:25:22 +0000 |
commit | d5a117c19fd8ad0628ee024e25b40533a740a7ac (patch) | |
tree | 84edcb7315990a3b6bcb225a064760c11c9a36b1 /community/neko | |
parent | e5102fb8536ae7e3bd4fd39d4803fe923ac0c89f (diff) | |
download | aports-d5a117c19fd8ad0628ee024e25b40533a740a7ac.tar.bz2 aports-d5a117c19fd8ad0628ee024e25b40533a740a7ac.tar.xz |
community/neko: split mysql, ui, and apache2 subpackages
Diffstat (limited to 'community/neko')
-rw-r--r-- | community/neko/APKBUILD | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/community/neko/APKBUILD b/community/neko/APKBUILD index cde0aea6be..bf5169ce6b 100644 --- a/community/neko/APKBUILD +++ b/community/neko/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Andy Li <andy@onthewings.net> pkgname=neko pkgver=2.2.0 -pkgrel=0 +pkgrel=1 pkgdesc="High-level dynamically typed programming language" url="https://nekovm.org/" arch="all" @@ -13,7 +13,8 @@ makedepends="apache2-dev cmake gc-dev gtk+2.0-dev linux-headers mariadb-dev mbedtls-dev ninja sqlite-dev" options="" install="" -subpackages="$pkgname-dev $pkgname-libs" +subpackages="$pkgname-dev $pkgname-libs $pkgname-mysql $pkgname-ui +$pkgname-apache2" source="$pkgname-$pkgver.tar.gz::https://github.com/HaxeFoundation/neko/archive/v${pkgver//./-}.tar.gz" builddir="$srcdir/$pkgname-${pkgver//./-}" @@ -36,4 +37,32 @@ package() { cd "$builddir" DESTDIR="$pkgdir" ninja -C build install || return 1 } + +_mv_ndll() { + local _ndlldir="usr/lib/neko" + mkdir -p "$subpkgdir"/$_ndlldir + for ndll in "$@" + do + mv "$pkgdir"/$_ndlldir/"$ndll".ndll "$subpkgdir"/$_ndlldir + done +} + +mysql() { + pkgdesc="Neko Virtual Machine - MySQL database support" + depends= + _mv_ndll mysql mysql5 +} + +ui() { + pkgdesc="Neko Virtual Machine - UI support" + depends= + _mv_ndll ui +} + +apache2() { + pkgdesc="Neko Virtual Machine - Apache2 modules" + depends= + _mv_ndll mod_neko2 mod_tora2 +} + sha512sums="4bc89fddf4a5ae94e73843b06a3b6fe8de59d72922764276a5bd9d56daf6570525e842039bf704598b41e1de4a5fe08931adc4ca9730fe3333be0beb7a1ccaed neko-2.2.0.tar.gz" |