diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-11-04 09:53:41 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-11-04 09:55:15 +0000 |
commit | 13ed704b6a778cd70bf04571839a87b14682e6fa (patch) | |
tree | 1bc28b2a5d282254ff8e16838c3ac10e44061a3f /main/lua5.1-bitlib | |
parent | d3a3fcd74cae07a523b1d3cceb0a79d7794d2241 (diff) | |
download | aports-13ed704b6a778cd70bf04571839a87b14682e6fa.tar.bz2 aports-13ed704b6a778cd70bf04571839a87b14682e6fa.tar.xz |
main/lua-bitlib: rename to lua5.1-bitlib
This is lua 5.1 only
Diffstat (limited to 'main/lua5.1-bitlib')
-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" |