summaryrefslogtreecommitdiff
path: root/community/lua-zlib/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-06-14 01:27:56 -0700
committerroot <root@rshg054.dnsready.net>2013-06-14 01:27:56 -0700
commitadf79eda8c652508134a41dff3af9524a87bbe5b (patch)
tree7651bdd229352c346fc70589dadd09079fe610a3 /community/lua-zlib/PKGBUILD
parent999ea819e4912b07aecd1ee8187ff1abcdb3de36 (diff)
Fri Jun 14 01:27:27 PDT 2013
Diffstat (limited to 'community/lua-zlib/PKGBUILD')
-rw-r--r--community/lua-zlib/PKGBUILD17
1 files changed, 10 insertions, 7 deletions
diff --git a/community/lua-zlib/PKGBUILD b/community/lua-zlib/PKGBUILD
index b2c4c5bb0..4b1d715ac 100644
--- a/community/lua-zlib/PKGBUILD
+++ b/community/lua-zlib/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 86219 2013-03-13 13:38:07Z spupykin $
+# $Id: PKGBUILD 92720 2013-06-13 12:58:26Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=(lua-zlib lua51-zlib)
pkgbase=lua-zlib
pkgver=0.2
-pkgrel=4
+pkgrel=5
_gitver=8d07669
url="http://github.com/brimworks/lua-zlib"
pkgdesc='Simple streaming interface to zlib for Lua.'
@@ -13,7 +13,7 @@ license=('MIT')
makedepends=('cmake' 'lua' 'lua51' 'zlib')
conflicts=('lua-lzlib')
source=("lua-zlib-$pkgver.zip::https://github.com/brimworks/lua-zlib/zipball/v$pkgver")
-md5sums=('28ce556fccb2d364bc5392f63c6f89ee')
+md5sums=('e6c780c0c4b6dcb88cf16949bb751be7')
build() {
cp -a $srcdir/brimworks-lua-zlib-${_gitver} $srcdir/brimworks-lua51-zlib-${_gitver}
@@ -22,11 +22,13 @@ build() {
sed -i "s#share/lua/cmod#lib/lua/5.2#" CMakeLists.txt
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr .
+ make
cd $srcdir/brimworks-lua51-zlib-${_gitver}
- sed -i "s#share/lua/cmod#lib/lua/5.1#" CMakeLists.txt
- cmake -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX=/usr .
+# sed -i "s#share/lua/cmod#lib/lua/5.1#" CMakeLists.txt
+# cmake -DCMAKE_BUILD_TYPE=Release \
+# -DCMAKE_INSTALL_PREFIX=/usr .
+ make linux
}
package_lua-zlib() {
@@ -41,6 +43,7 @@ package_lua51-zlib() {
depends=('zlib' 'lua51')
cd $srcdir/brimworks-lua51-zlib-${_gitver}
- make DESTDIR="$pkgdir" install
+ mkdir -p $pkgdir/usr/lib/lua/5.1
+ make DESTDIR="$pkgdir" LUACPATH=$pkgdir/usr/lib/lua/5.1 install
install -D -m644 "README" "$pkgdir/usr/share/licenses/$pkgname/README"
}