diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-11-01 08:56:32 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-11-01 08:56:32 +0000 |
commit | 0135d232fffb15d577e77241d6c654ff6682ffcd (patch) | |
tree | bf6189d2e560a178107456b3356b2d1be8f8aa01 /main/lua-stringy/APKBUILD | |
parent | 38789098b0f785e8055f6d84e7647ed32163dedd (diff) | |
download | aports-0135d232fffb15d577e77241d6c654ff6682ffcd.tar.bz2 aports-0135d232fffb15d577e77241d6c654ff6682ffcd.tar.xz |
main/lua-stringy: moved from testing
Diffstat (limited to 'main/lua-stringy/APKBUILD')
-rw-r--r-- | main/lua-stringy/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/main/lua-stringy/APKBUILD b/main/lua-stringy/APKBUILD new file mode 100644 index 0000000000..3b268594d3 --- /dev/null +++ b/main/lua-stringy/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=lua-stringy +pkgver=0.2 +pkgrel=0 +pkgdesc="Lua string utility library" +url="http://hackmap.blogspot.com" +arch="all" +license="MIT" +depends="" +makedepends="lua-dev" +install="" +subpackages="" +source="http://bpbio.googlecode.com/files/stringy-$pkgver.tar.gz + stringy-memcmp.patch" + +_builddir="$srcdir"/stringy-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ${CC:-gcc} ${CFLAGS} -fPIC -shared ${LDFLAGS} -llua -o stringy.so stringy.c || return 1 + lua stringy_test.lua +} + +package() { + local _lualibdir=/usr/lib/lua/5.1 + cd "$_builddir" + mkdir -p "$pkgdir"/$_lualibdir + cp stringy.so "$pkgdir"/$_lualibdir/ +} + +md5sums="c53f05a37410a234d4afa0aa3210d800 stringy-0.2.tar.gz +b3fbeca41227425894d6e0d74a684969 stringy-memcmp.patch" |