summaryrefslogtreecommitdiff
path: root/community/lua-zlib/PKGBUILD
blob: 3bd622baccac97304f05715c6b128f8f1eecfbf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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' 'mips64el')
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"
}