diff options
author | root <root@rshg054.dnsready.net> | 2013-03-14 00:05:24 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-03-14 00:05:24 -0700 |
commit | 3ff20dedff636571ad0faa4736af5b23e4623ffe (patch) | |
tree | ab4a70fe4e4a9113ff3483d8635eb46f8994c12a /community/lua-zlib | |
parent | 3efd178c050d911cfdff7e8d2ed4886b98b08b98 (diff) |
Thu Mar 14 00:05:23 PDT 2013
Diffstat (limited to 'community/lua-zlib')
-rw-r--r-- | community/lua-zlib/PKGBUILD | 34 |
1 files changed, 25 insertions, 9 deletions
diff --git a/community/lua-zlib/PKGBUILD b/community/lua-zlib/PKGBUILD index 0d67dc101..b2c4c5bb0 100644 --- a/community/lua-zlib/PKGBUILD +++ b/community/lua-zlib/PKGBUILD @@ -1,30 +1,46 @@ -# $Id: PKGBUILD 81123 2012-12-12 00:49:35Z eric $ +# $Id: PKGBUILD 86219 2013-03-13 13:38:07Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> -pkgname=lua-zlib +pkgname=(lua-zlib lua51-zlib) +pkgbase=lua-zlib pkgver=0.2 -pkgrel=3 +pkgrel=4 _gitver=8d07669 -_luaver=5.2 url="http://github.com/brimworks/lua-zlib" pkgdesc='Simple streaming interface to zlib for Lua.' arch=('i686' 'x86_64') license=('MIT') -depends=('lua' 'zlib') -makedepends=('cmake') +makedepends=('cmake' 'lua' 'lua51' 'zlib') conflicts=('lua-lzlib') source=("lua-zlib-$pkgver.zip::https://github.com/brimworks/lua-zlib/zipball/v$pkgver") md5sums=('28ce556fccb2d364bc5392f63c6f89ee') 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/${_luaver}#" CMakeLists.txt + sed -i "s#share/lua/cmod#lib/lua/5.2#" CMakeLists.txt + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr . + + 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 . } -package() { +package_lua-zlib() { + depends=('zlib' 'lua') + cd $srcdir/brimworks-lua-zlib-${_gitver} make DESTDIR="$pkgdir" install - install -D -m644 "README" "$pkgdir/usr/share/licenses/lua-zlib/README" + install -D -m644 "README" "$pkgdir/usr/share/licenses/$pkgname/README" +} + +package_lua51-zlib() { + depends=('zlib' 'lua51') + + cd $srcdir/brimworks-lua51-zlib-${_gitver} + make DESTDIR="$pkgdir" install + install -D -m644 "README" "$pkgdir/usr/share/licenses/$pkgname/README" } |