From 62818e2599b53602074b541ef87481623dd20eaa Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 27 Oct 2010 09:50:15 +0000 Subject: main/lua-rex: moved from testing --- main/lua-rex/APKBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ testing/lua-rex/APKBUILD | 46 ---------------------------------------------- 2 files changed, 46 insertions(+), 46 deletions(-) create mode 100644 main/lua-rex/APKBUILD delete mode 100644 testing/lua-rex/APKBUILD diff --git a/main/lua-rex/APKBUILD b/main/lua-rex/APKBUILD new file mode 100644 index 0000000000..04fb749703 --- /dev/null +++ b/main/lua-rex/APKBUILD @@ -0,0 +1,46 @@ +# Maintainer: Natanael Copa +pkgname=lua-rex +pkgver=2.4.0 +pkgrel=1 +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 -fPIC/" src/defaults.mak + sed -i -e "s/^LD .*/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" diff --git a/testing/lua-rex/APKBUILD b/testing/lua-rex/APKBUILD deleted file mode 100644 index 04fb749703..0000000000 --- a/testing/lua-rex/APKBUILD +++ /dev/null @@ -1,46 +0,0 @@ -# Maintainer: Natanael Copa -pkgname=lua-rex -pkgver=2.4.0 -pkgrel=1 -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 -fPIC/" src/defaults.mak - sed -i -e "s/^LD .*/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" -- cgit v1.2.3