aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lua-rexlib/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-02-17 09:52:53 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-02-17 09:52:53 +0000
commit5820b6eeb1553df584c4c1cacc21e2a99e33d7e6 (patch)
treede8fcf1090df1d1534eccb0174949c77ea924021 /testing/lua-rexlib/APKBUILD
parent17d5c4cef95b78edb11a53ec40fa8ec52066fb2e (diff)
downloadaports-5820b6eeb1553df584c4c1cacc21e2a99e33d7e6.tar.gz
aports-5820b6eeb1553df584c4c1cacc21e2a99e33d7e6.tar.bz2
aports-5820b6eeb1553df584c4c1cacc21e2a99e33d7e6.tar.xz
testing/lua-rexlib: new aport
Lua bindings to regular expression library pcre and posix http://lrexlib.luaforge.net/
Diffstat (limited to 'testing/lua-rexlib/APKBUILD')
-rw-r--r--testing/lua-rexlib/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/lua-rexlib/APKBUILD b/testing/lua-rexlib/APKBUILD
new file mode 100644
index 0000000000..1eeedc48f3
--- /dev/null
+++ b/testing/lua-rexlib/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor:
+# Maintainer:
+pkgname=lua-rex
+pkgver=2.4.0
+pkgrel=0
+pkgdesc="Lua bindings to regular expression library pcre and posix"
+url="http://lrexlib.luaforge.net/"
+license="MIT"
+depends="lua-rex-pcre lua-rex-posix"
+makedepends="pcre-dev lua-dev"
+install=
+subpackages="$pkgname-pcre $pkgname-posix"
+source="http://luaforge.net/frs/download.php/3599/lrexlib-$pkgver.zip"
+
+_builddir="$srcdir"/lrexlib-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ sed -i -e "s/^MYCFLAGS.*/MYCFLAGS = $CFLAGS/" src/defaults.mak
+ sed -i -e "s/^LD\\s\\+.*/LD = gcc/" \
+ src/common.mak
+}
+
+build() {
+ cd "$_builddir"
+ make -j1 build_pcre build_posix
+}
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
+pcre() {
+ pkgdesc="Lua bindings to pcre regular expressions library"
+ cd "$_builddir"
+ install -d "$subpkgdir"/usr/lib/lua/5.1
+ cp -a src/pcre/rex_pcre.so* "$subpkgdir"/usr/lib/lua/5.1
+}
+
+posix() {
+ pkgdesc="Lua bindings to posix regular expressions library"
+ cd "$_builddir"
+ install -d "$subpkgdir"/usr/lib/lua/5.1
+ cp -a src/posix/rex_posix.so* "$subpkgdir"/usr/lib/lua/5.1
+}
+
+md5sums="c75d4164ac5036219eac87b488ded9b7 lrexlib-2.4.0.zip"