summaryrefslogtreecommitdiff
path: root/community/lua-zlib/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2013-07-09 20:21:51 -0300
committerNicolás Reynolds <fauno@endefensadelsl.org>2013-07-09 20:21:51 -0300
commit7823c9009a845174746fd0da09af46a138481851 (patch)
tree0dfc6283d25ec646a14b22f1fe6391033df615c7 /community/lua-zlib/PKGBUILD
parent10b073d2a0221de89fc39409acb06758de3a3118 (diff)
parentee9c1a601c6ce156c295e4a4608ad50535192954 (diff)
Merge branch 'master' of gparabola:abslibre-mips64el
Diffstat (limited to 'community/lua-zlib/PKGBUILD')
-rw-r--r--community/lua-zlib/PKGBUILD45
1 files changed, 19 insertions, 26 deletions
diff --git a/community/lua-zlib/PKGBUILD b/community/lua-zlib/PKGBUILD
index a7878b14a..22e490738 100644
--- a/community/lua-zlib/PKGBUILD
+++ b/community/lua-zlib/PKGBUILD
@@ -1,49 +1,42 @@
-# $Id: PKGBUILD 92720 2013-06-13 12:58:26Z spupykin $
+# $Id: PKGBUILD 93359 2013-07-02 09:43:15Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=(lua-zlib lua51-zlib)
pkgbase=lua-zlib
-pkgver=0.2
-pkgrel=5
-_gitver=8d07669
+pkgver=20130702
+pkgrel=1
url="http://github.com/brimworks/lua-zlib"
pkgdesc='Simple streaming interface to zlib for Lua.'
arch=('i686' 'x86_64' 'mips64el')
license=('MIT')
-makedepends=('cmake' 'lua' 'lua51' 'zlib')
+makedepends=('cmake' 'lua' 'lua51' 'zlib' 'git')
conflicts=('lua-lzlib')
-source=("lua-zlib-$pkgver.zip::https://github.com/brimworks/lua-zlib/zipball/v$pkgver")
-md5sums=('e6c780c0c4b6dcb88cf16949bb751be7')
+#source=("lua-zlib-$pkgver.zip::https://github.com/brimworks/lua-zlib/zipball/v$pkgver")
+source=("git://github.com/brimworks/lua-zlib.git")
+md5sums=('SKIP')
build() {
- cp -a $srcdir/brimworks-lua-zlib-${_gitver} $srcdir/brimworks-lua51-zlib-${_gitver}
-
- cd $srcdir/brimworks-lua-zlib-${_gitver}
- 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 .
- make linux
+ cp -a $srcdir/lua-zlib $srcdir/lua51-zlib
+
+ cd $srcdir/lua-zlib
+ gcc -o zlib.so -O2 -fPIC -shared lua_zlib.c -llua -lz
+
+ cd $srcdir/lua51-zlib
+ gcc -o zlib.so -O2 -fPIC -shared -I/usr/include/lua5.1 lua_zlib.c -llua5.1 -lz
}
package_lua-zlib() {
depends=('zlib' 'lua')
- cd $srcdir/brimworks-lua-zlib-${_gitver}
- make DESTDIR="$pkgdir" install
- install -D -m644 "README" "$pkgdir/usr/share/licenses/$pkgname/README"
+ cd $srcdir/lua-zlib
+ install -Dm0755 zlib.so $pkgdir/usr/lib/lua/5.2/zlib.so
+ install -Dm644 "README" "$pkgdir/usr/share/licenses/$pkgname/README"
}
package_lua51-zlib() {
depends=('zlib' 'lua51')
- cd $srcdir/brimworks-lua51-zlib-${_gitver}
- mkdir -p $pkgdir/usr/lib/lua/5.1
- make DESTDIR="$pkgdir" LUACPATH=$pkgdir/usr/lib/lua/5.1 install
+ cd $srcdir/lua51-zlib
+ install -Dm0755 zlib.so $pkgdir/usr/lib/lua/5.1/zlib.so
install -D -m644 "README" "$pkgdir/usr/share/licenses/$pkgname/README"
}