diff options
author | tmpfile <tmpfile@users.noreply.github.com> | 2017-05-13 13:06:16 -0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-06-06 20:09:47 +0000 |
commit | f612abcfbb3a54bbc91525a6fc0e498775c11461 (patch) | |
tree | caad0bb9f2ab0ae7d9a8503c560acd16adc95ffc /main/lua-posixtz/APKBUILD | |
parent | 4a690d5214929772b9aa82f90e9b457a32ef9634 (diff) | |
download | aports-f612abcfbb3a54bbc91525a6fc0e498775c11461.tar.bz2 aports-f612abcfbb3a54bbc91525a6fc0e498775c11461.tar.xz |
main/lua-posixtz: modernize abuild
Diffstat (limited to 'main/lua-posixtz/APKBUILD')
-rw-r--r-- | main/lua-posixtz/APKBUILD | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/main/lua-posixtz/APKBUILD b/main/lua-posixtz/APKBUILD index 246efc5d0f..2121cffa8a 100644 --- a/main/lua-posixtz/APKBUILD +++ b/main/lua-posixtz/APKBUILD @@ -8,11 +8,6 @@ pkgdesc="Lua module to extract POSIX timezone from tzdata" url="http://git.alpinelinux.org/cgit/posixtz.git/" arch="all" license="GPLv2" -depends= -install= -depends_dev="" -makedepends="$depends_dev" -subpackages="" for _i in $_luaversions; do makedepends="$makedepends lua$_i-dev" subpackages="$subpackages lua$_i-posixtz:split_${_i/./_}" @@ -22,13 +17,7 @@ source="http://dev.alpinelinux.org/archive/posixtz/posixtz-$pkgver.tar.xz" _sdir="$srcdir"/posixtz-$pkgver prepare() { - local i - cd "$_sdir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + default_prepare for _i in $_luaversions; do cp -r "$_sdir" "$srcdir"/build-$_i done @@ -37,7 +26,7 @@ prepare() { build() { for _i in $_luaversions; do cd "$srcdir"/build-$_i - make LUAPC="lua$_i" core.so || return 1 + make LUAPC="lua$_i" core.so done } @@ -53,11 +42,10 @@ _split() { local d= _ver=$1 pkgdesc="Lua $_ver module to extract POSIX timezone from tzdata" install_if="lua$_ver $pkgname=$pkgver-r$pkgrel" - depends= for d in usr/lib/lua usr/share/lua; do if [ -d "$pkgdir"/$d/$_ver ]; then mkdir -p "$subpkgdir"/$d - mv "$pkgdir"/$d/$_ver "$subpkgdir"/$d/ || return 1 + mv "$pkgdir"/$d/$_ver "$subpkgdir"/$d/ fi done } @@ -66,6 +54,4 @@ for _i in $_luaversions; do eval "split_${_i/./_}() { _split $_i; }" done -md5sums="80f8ae1df19dd28e1c8b192c6ea7b836 posixtz-0.5.tar.xz" -sha256sums="e0a79e0922be2da686a1888d79cd253baaf81c2f30b4378fbbcf9ff9d632aab5 posixtz-0.5.tar.xz" sha512sums="68dbaab9f4aef166ac2f2d40b49366527b840bebe17a47599fe38345835e4adb8a767910745ece9c384b57af815a871243c3e261a29f41d71f8054df3061b3fd posixtz-0.5.tar.xz" |