aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-dbi/APKBUILD
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-11-24 00:47:46 +0100
committerJakub Jirutka <jakub@jirutka.cz>2017-11-24 01:02:12 +0100
commit8328712bd7db99645c95b7368ab76242ae953d1e (patch)
tree499360437947c7ea6594d4f18b851aaeb6a2cad4 /main/lua-dbi/APKBUILD
parentd6c8a15c1b57ceecfe8e8e22fea826baaeb30d4b (diff)
downloadaports-8328712bd7db99645c95b7368ab76242ae953d1e.tar.gz
aports-8328712bd7db99645c95b7368ab76242ae953d1e.tar.bz2
aports-8328712bd7db99645c95b7368ab76242ae953d1e.tar.xz
main/lua-dbi: upgrade to 0.6
Diffstat (limited to 'main/lua-dbi/APKBUILD')
-rw-r--r--main/lua-dbi/APKBUILD32
1 files changed, 12 insertions, 20 deletions
diff --git a/main/lua-dbi/APKBUILD b/main/lua-dbi/APKBUILD
index 342a98f253..3ced7c4c7e 100644
--- a/main/lua-dbi/APKBUILD
+++ b/main/lua-dbi/APKBUILD
@@ -2,17 +2,18 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=lua-dbi
_pkgname=luadbi
-pkgver=0.5
-pkgrel=7
+pkgver=0.6
+pkgrel=0
pkgdesc="A database interface library for Lua"
-url="http://code.google.com/p/luadbi"
+url="https://github.com/mwild1/luadbi"
arch="all"
license="GPL"
-makedepends="lua-dev mariadb-dev postgresql-dev sqlite-dev"
+makedepends="mariadb-dev postgresql-dev sqlite-dev"
_subpackages="$pkgname-mysql $pkgname-postgresql $pkgname-sqlite3"
-source="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/luadbi/luadbi.$pkgver.tar.gz
- lua-dbi-0.5-sync-hg-47382fea7a9c.patch"
-builddir="$srcdir"
+source="https://github.com/mwild1/$_pkgname/archive/v$pkgver/$_pkgname.tar.gz
+ fix-table-maxn.patch"
+builddir="$srcdir/$_pkgname-$pkgver"
+options="!check" # provided tests require running DBs
_luaversions="5.1 5.2 5.3"
for _v in $_luaversions; do
@@ -22,7 +23,6 @@ for _v in $_luaversions; do
done
done
-
prepare() {
default_prepare
@@ -34,9 +34,7 @@ prepare() {
build() {
local lver; for lver in $_luaversions; do
msg "Building for Lua $lver..."
- cd "$builddir-$lver"
- echo LUA_IMPL=lua$lver >> .config
- make LUA_VERSION=$lver
+ make -C "$builddir-$lver" LUA_V=$lver
done
}
@@ -52,14 +50,8 @@ _subpackage() {
install_if="$pkgname=$pkgver-r$pkgrel lua$lver"
cd "$builddir-$lver"
-
- install -D -m755 DBI.lua "$subpkgdir"/usr/share/lua/$lver/DBI.lua
- install -D -m644 dbd$db.so "$subpkgdir"/usr/lib/lua/$lver/dbd$db.so
+ make LUA_V=$lver DESTDIR="$subpkgdir" install_${db/postgresql/psql}
}
-md5sums="ede2b003aadddc151aac87050c3d926e luadbi.0.5.tar.gz
-a1359b3a96a21a010310b505c667f8aa lua-dbi-0.5-sync-hg-47382fea7a9c.patch"
-sha256sums="49116458dd80052536bf5d7e2b2a1f5a0fa42a671ce77f1cb7355ef7faeb331e luadbi.0.5.tar.gz
-c6cd0587d789fa9af4687dac471e8b05aea63022224b0da482ec9dcfc7998dd2 lua-dbi-0.5-sync-hg-47382fea7a9c.patch"
-sha512sums="4ed641e113e90acc8a4f6b3b2d0f5d5044c0fbbef3b2fdfb84d15e17115e45c553a33b19bfb165e5af11a2adce501d66859963e3363d3ab1c6a39b0b2ae92e62 luadbi.0.5.tar.gz
-e4f5dc5a75204e7fc1221b4322f1044889a417c6bf7f01bfc7249756a3739931423c66282b560f223f4ea8ef7e1d8311fbe5dfa281d0102a835c436ace7470e4 lua-dbi-0.5-sync-hg-47382fea7a9c.patch"
+sha512sums="cac2390e95c5f41e3cf85694292ec7ed32b70ec3b6d0f52a67245d5bbd189beda11f1041c3f1ea7a11fe4d23aeb825d50332f21e938d654b72a96ebcc227c3eb luadbi.tar.gz
+3d2754b93abca4795ae7ce76c79d95601229e8dd9fdf7a1cceb95086c8f00e235f89bd44cd30aa5394b607c4abbe44010620250a3990b17a219c52bfe1b262f2 fix-table-maxn.patch"