diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-01-04 02:25:43 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-01-04 02:39:14 +0100 |
commit | 6072a809616b91d38ea7402c84f39e413f00daff (patch) | |
tree | f3ed74b25041beccd5cecc09924cd376a014546f /main/lua5.2-b64 | |
parent | fdebe437f2fc8b62a80057bb5559c02ae81ce4e6 (diff) | |
download | aports-6072a809616b91d38ea7402c84f39e413f00daff.tar.bz2 aports-6072a809616b91d38ea7402c84f39e413f00daff.tar.xz |
main/lua5.2-b64: improve abuild
Diffstat (limited to 'main/lua5.2-b64')
-rw-r--r-- | main/lua5.2-b64/APKBUILD | 31 |
1 files changed, 7 insertions, 24 deletions
diff --git a/main/lua5.2-b64/APKBUILD b/main/lua5.2-b64/APKBUILD index fa2e6c4f54..9311df32b6 100644 --- a/main/lua5.2-b64/APKBUILD +++ b/main/lua5.2-b64/APKBUILD @@ -1,43 +1,26 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=lua5.2-b64 +_pkgname=lua-b64 pkgver=0.1 pkgrel=1 pkgdesc="Lua 5.2 base64 implementation with support for urlsafe" url="https://github.com/ncopa/lua-b64" arch="all" license="MIT" -depends="" -depends_dev="" -makedepends="$depends_dev lua5.2-dev" -install="" -subpackages="" -source="lua-b64-$pkgver.tar.gz::https://github.com/ncopa/lua-b64/archive/v0.1.tar.gz +makedepends="lua5.2-dev" +source="$_pkgname-$pkgver.tar.gz::https://github.com/ncopa/$_pkgname/archive/v$pkgver.tar.gz 0001-b64-fix-segfault-caused-by-signed-char.patch" - -_builddir="$srcdir"/lua-b64-$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 -} +builddir="$srcdir/$_pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" make } package() { - cd "$_builddir" - install -D b64.so "$pkgdir"/usr/lib/lua/5.2/b64.so || return 1 + cd "$builddir" + install -D b64.so "$pkgdir"/usr/lib/lua/5.2/b64.so } -md5sums="91e537a0aedc7bd2fb4ca38cda1d9f9f lua-b64-0.1.tar.gz -f396211df1ed6f94c2d23fc1c102ffdb 0001-b64-fix-segfault-caused-by-signed-char.patch" -sha256sums="5136414bc5db7e6bfc96ff7eb9ac56e797419d04c5b4d3483891c8714239d700 lua-b64-0.1.tar.gz -2e4b39f088c275fa572379283489232cecf383e2c6c6fd43e802b6be72cbc70e 0001-b64-fix-segfault-caused-by-signed-char.patch" sha512sums="8740d5061db01dca166ce2c959548a3232c85dce156fce3502da35f457db79db2bf23242ee6d26b64f4141c451db733898328b8fc3d1f62b47e8f7ec790577d1 lua-b64-0.1.tar.gz 6da3b8048b2e6772a4aac954ea2db35f9c21897d720e7ff9dc6c1d63ffc37eeb4fb91be46bc13b32a2c3d1b88997172fe259ea699ac8591f0f3e1fd53cae378b 0001-b64-fix-segfault-caused-by-signed-char.patch" |