diff options
Diffstat (limited to 'community/lua-zlib/PKGBUILD')
-rw-r--r-- | community/lua-zlib/PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/community/lua-zlib/PKGBUILD b/community/lua-zlib/PKGBUILD new file mode 100644 index 000000000..01ebf0eee --- /dev/null +++ b/community/lua-zlib/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 23493 2010-08-11 18:21:33Z lcarlier $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> + +pkgname=lua-zlib +pkgver=0 +pkgrel=3 +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') +conflicts=('lua-lzlib') +source=("lua-zlib-$pkgver.tar.gz::http://github.com/brimworks/lua-zlib/tarball/version-0") +md5sums=('c404284a796e2f9143629bfdcb1ba200') + +build() { + cd $srcdir/brimworks-lua-zlib-da0549e + + local _luaver=5.1 + sed -i "s#share/lua/cmod#lib/lua/${_luaver}#" CMakeLists.txt + + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr . +} + +package() { + cd $srcdir/brimworks-lua-zlib-da0549e + + make DESTDIR="$pkgdir" install || return 1 + install -D -m644 "README" "$pkgdir/usr/share/licenses/lua-zlib/README" +} |