diff options
Diffstat (limited to 'main/lua5.1-bitlib/APKBUILD')
-rw-r--r-- | main/lua5.1-bitlib/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/main/lua5.1-bitlib/APKBUILD b/main/lua5.1-bitlib/APKBUILD new file mode 100644 index 0000000000..583380d9c9 --- /dev/null +++ b/main/lua5.1-bitlib/APKBUILD @@ -0,0 +1,42 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=lua5.1-bitlib +_name=bitlib +pkgver=26 +pkgrel=0 +pkgdesc="A lua library providing bitwise operations" +url="http://luaforge.net/projects/bitli://github.com/LuaDist/bitlib" +arch="all" +license="MIT/X11" +depends="" +makedepends="lua5.1-dev" +subpackages="" +source="lua-bitlib-$pkgver.tar.gz::https://github.com/LuaDist/bitlib/archive/$pkgver.tar.gz" +replaces="lua-bitlib" + +_builddir="$srcdir"/$_name-$pkgver + +prepare() { + cd "$_builddir" + update_config_sub || return 1 +} + +build() { + cd "$_builddir" + LUA=lua5.1 \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install + rm -f "$pkgdir"/usr/lib/lua/5.1/*a +} + +md5sums="1c5bc4f544d8de7d4d50f0fccda733e8 lua-bitlib-26.tar.gz" +sha256sums="6f8902067ce1184bdef0e14a240d5e8c1ee56d7fcd59cff2cebe8bb0b9540d4c lua-bitlib-26.tar.gz" +sha512sums="a9900788b2e7c3f79f0dc7fe5edecd1d1fa4328a4f3d3410be59c303d804dae2e89936d21bb6684dc2b8ffcd2e9b9c339bac214c8a314ab6341dbf67c51445ef lua-bitlib-26.tar.gz" |