aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lua-stringy/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-10-12 19:34:04 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-10-12 19:34:04 +0000
commitaa86e67a71a4e87573f07043f1b7c5168fa42edb (patch)
tree6224973be1ee4caa9e3902a09e81a78550b46e51 /testing/lua-stringy/APKBUILD
parentb42e24a384ec4931bb43703928f569e768074e91 (diff)
downloadaports-aa86e67a71a4e87573f07043f1b7c5168fa42edb.tar.bz2
aports-aa86e67a71a4e87573f07043f1b7c5168fa42edb.tar.xz
testing/lua-stringy: new aport
Lua string utility library http://hackmap.blogspot.com
Diffstat (limited to 'testing/lua-stringy/APKBUILD')
-rw-r--r--testing/lua-stringy/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/lua-stringy/APKBUILD b/testing/lua-stringy/APKBUILD
new file mode 100644
index 0000000000..3b268594d3
--- /dev/null
+++ b/testing/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"