diff options
-rw-r--r-- | testing/lua-tar/APKBUILD | 47 | ||||
-rw-r--r-- | testing/lua-tar/enable-pic.patch | 11 |
2 files changed, 58 insertions, 0 deletions
diff --git a/testing/lua-tar/APKBUILD b/testing/lua-tar/APKBUILD new file mode 100644 index 000000000..f13d41787 --- /dev/null +++ b/testing/lua-tar/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=lua-tar +pkgver=0.0 +pkgrel=0 +pkgdesc="Lua tar" +url="http://luaforge.net/projects/luatar/" +arch="all" +license="GPL" +depends="" +depends_dev="lua-dev libtar-dev bzip2-dev" +makedepends="$depends_dev" +install="" +subpackages="" +source="http://files.luaforge.net/releases/luatar/luatar/luatar-$pkgver/luatar-$pkgver.tar.gz + enable-pic.patch" + +_builddir="$srcdir"/luatar-$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" + make HAVE_LIBTAR=1 DEBUG=0 || return 1 +} + +package() { + cd "$_builddir" + install -m644 -D tar.lua \ + $pkgdir/usr/share/lua/5.1/tar.lua || return 1 + install -m755 -D ltar.so \ + $pkgdir/usr/lib/lua/5.1/ltar.so || return 1 +} + +md5sums="d85e342e65c41e98daf285ef280e71ec luatar-0.0.tar.gz +de6b512d8216b5ff03a2439963c51bd6 enable-pic.patch" +sha256sums="5fafa306425f17996a9288c828b41f94c8eb17d0a01f541b3b221e4e9cc2a398 luatar-0.0.tar.gz +44794ae4ddd1e4873a3b885607dd14015b9eed5a023740547f3e61d294347024 enable-pic.patch" +sha512sums="11077a7c8806041654dc75dac0dac8c49497ff8ea55031f86c3bec7266624a164c403899f1bd8a41eeb06e076e0386927685b3c4eb600ff31e17c42c038b9acb luatar-0.0.tar.gz +d1680dd9fbc96d3f58349f69820df0f879ad139703086e7934f60cbdeadb649ac744a9d3c9257273a088a3895e899b780d2eca5278096ea623277fd5b1d59600 enable-pic.patch" diff --git a/testing/lua-tar/enable-pic.patch b/testing/lua-tar/enable-pic.patch new file mode 100644 index 000000000..ab234e2ce --- /dev/null +++ b/testing/lua-tar/enable-pic.patch @@ -0,0 +1,11 @@ +--- a/Makefile.orig ++++ b/Makefile +@@ -13,7 +13,7 @@ + DEPS = $(SRCS:.c=.d) + + CC = gcc +-CFLAGS = -O2 -Wall ++CFLAGS = -O2 -Wall -fPIC + LDFLAGS = -s + LIBS = + DLEXT = so |