diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-25 15:26:24 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-25 15:26:24 +0200 |
commit | b6af1e02efe594039707cd882517663d5370f375 (patch) | |
tree | ff9c2d55873e051e82972ba64c017352d3a75d34 /unmaintained/lua-zlib | |
parent | a71346b7acebc600960a98c84fb32cfd72fe864b (diff) | |
download | aports-b6af1e02efe594039707cd882517663d5370f375.tar.bz2 aports-b6af1e02efe594039707cd882517663d5370f375.tar.xz |
testing/[multiple]: move unmaintained packages
This moves all packages from testing to unmaintained which have not been
updated for atleast 6 months. If you are affected by this commit please follow
this proceddure:
* make sure your packages build on all architectures
* move your pacakge(s) back to testing
* if you want to keep this package and can maintain it (or find somebody to
maintain it for you) for a minimum of 6 months ask it to be moved to community
Diffstat (limited to 'unmaintained/lua-zlib')
-rw-r--r-- | unmaintained/lua-zlib/APKBUILD | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/unmaintained/lua-zlib/APKBUILD b/unmaintained/lua-zlib/APKBUILD new file mode 100644 index 0000000000..92becfeac9 --- /dev/null +++ b/unmaintained/lua-zlib/APKBUILD @@ -0,0 +1,65 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> + +_luaversions="5.1 5.2" + +pkgname=lua-zlib +pkgver=0.3 +pkgrel=0 +pkgdesc="Simple streaming interface to zlib for Lua" +url="https://github.com/brimworks/lua-zlib" +arch="all" +license="MIT" +depends="" +makedepends="zlib-dev" +subpackages= +for _i in $_luaversions; do + depends="$depends lua$_i-zlib" + makedepends="$makedepends lua$_i-dev" + subpackages="$subpackages lua$_i-zlib:_zlib_${_i/./_}" +done +install= +source="$pkgname-$pkgver.tar.gz::https://github.com/brimworks/lua-zlib/archive/v$pkgver.tar.gz" + +_builddir="$srcdir"/lua-zlib-$pkgver + +prepare() { + cd "$_builddir" + # apply patches here + for _i in $_luaversions; do + cp -a "$_builddir" "$srcdir"/build-$_i || return 1 + done +} + +build() { + cd "$_builddir" + for _i in $_luaversions; do + cd "$srcdir"/build-$_i + msg "build for Lua $_i" + make zlib.so \ + CFLAGS="$CFLAGS -fPIC $(pkg-config --cflags lua$_i)" \ + LDFLAGS="$LDFLAGS -shared" \ + LIBS="-lz -lm" \ + || return 1 + done +} + +package() { + mkdir -p "$pkgdir" +} + +_split_zlib() { + local _ver=$1 + pkgdesc="$pkgdesc $_ver" + depends="" + + cd "$srcdir"/build-$_ver + install -Dm755 zlib.so "$subpkgdir"/usr/lib/lua/$_ver/zlib.so +} + +for _i in $_luaversions; do + eval "_zlib_${_i/./_}() { _split_zlib $_i; }" +done + +md5sums="3ac4122776d6c86514d1a6235b803955 lua-zlib-0.3.tar.gz" +sha256sums="3c9412b1c97bc7182c478c2536ad9890d7a472a2844e10ae736403894781cf4a lua-zlib-0.3.tar.gz" +sha512sums="c6045aaa2b5969afa54d6be979b1f367464cbfc738423eb0a4928b8c515a238150a480b619ac63047d4b24078bedac469404deace9c4cec9c9ea25178a5d11a9 lua-zlib-0.3.tar.gz" |