aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-dbi/APKBUILD
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-11-24 01:04:53 +0100
committerJakub Jirutka <jakub@jirutka.cz>2017-11-24 01:05:06 +0100
commit5e2c9624a6d1d9677d7e263cd1a30e5c0a08eb5f (patch)
treef08773fd26e0dbfe30be82a326d478a5ac4d5a7f /main/lua-dbi/APKBUILD
parent8328712bd7db99645c95b7368ab76242ae953d1e (diff)
downloadaports-5e2c9624a6d1d9677d7e263cd1a30e5c0a08eb5f.tar.gz
aports-5e2c9624a6d1d9677d7e263cd1a30e5c0a08eb5f.tar.bz2
aports-5e2c9624a6d1d9677d7e263cd1a30e5c0a08eb5f.tar.xz
main/lua-dbi: add rock manifest
Diffstat (limited to 'main/lua-dbi/APKBUILD')
-rw-r--r--main/lua-dbi/APKBUILD6
1 files changed, 5 insertions, 1 deletions
diff --git a/main/lua-dbi/APKBUILD b/main/lua-dbi/APKBUILD
index 3ced7c4c7e..b897f33f60 100644
--- a/main/lua-dbi/APKBUILD
+++ b/main/lua-dbi/APKBUILD
@@ -3,7 +3,7 @@
pkgname=lua-dbi
_pkgname=luadbi
pkgver=0.6
-pkgrel=0
+pkgrel=1
pkgdesc="A database interface library for Lua"
url="https://github.com/mwild1/luadbi"
arch="all"
@@ -45,12 +45,16 @@ package() {
_subpackage() {
local lver="${subpkgname:3:3}"
local db=${subpkgname##*-}
+ local rockdir="$subpkgdir/usr/lib/luarocks/rocks-$lver/$_pkgname-$db/$pkgver-2"
pkgdesc="$pkgdesc $lver and $db"
depends="lua$lver"
install_if="$pkgname=$pkgver-r$pkgrel lua$lver"
cd "$builddir-$lver"
make LUA_V=$lver DESTDIR="$subpkgdir" install_${db/postgresql/psql}
+
+ mkdir -p "$rockdir"
+ echo 'rock_manifest = {}' > "$rockdir"/rock_manifest
}
sha512sums="cac2390e95c5f41e3cf85694292ec7ed32b70ec3b6d0f52a67245d5bbd189beda11f1041c3f1ea7a11fe4d23aeb825d50332f21e938d654b72a96ebcc227c3eb luadbi.tar.gz