diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-04-01 20:20:42 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-04-01 20:20:42 +0000 |
commit | f27038ee8e70f9fac545fbde54926cca0087d14b (patch) | |
tree | 127bd5c5607952336a8e96c1d816a5a7e6ca83e0 /main/lua-feedparser | |
parent | ebcbfd35408ff99a8ca089825f418d4d0b336a93 (diff) | |
download | aports-f27038ee8e70f9fac545fbde54926cca0087d14b.tar.bz2 aports-f27038ee8e70f9fac545fbde54926cca0087d14b.tar.xz |
main/lua-feedparser: use install_if
still no lua 5.3 support
https://github.com/slact/lua-feedparser/issues/3
Diffstat (limited to 'main/lua-feedparser')
-rw-r--r-- | main/lua-feedparser/APKBUILD | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/lua-feedparser/APKBUILD b/main/lua-feedparser/APKBUILD index 451f6ae76d..64579fe2b1 100644 --- a/main/lua-feedparser/APKBUILD +++ b/main/lua-feedparser/APKBUILD @@ -3,7 +3,7 @@ _luaversions="5.1 5.2" pkgname=lua-feedparser _name=feedparser pkgver=0.7 -pkgrel=0 +pkgrel=1 pkgdesc="A decent RSS and Atom XML feed parser" url="https://github.com/slact/lua-feedparser" arch="noarch" @@ -17,7 +17,6 @@ subpackages="$pkgname-common" for _i in $_luaversions; do makedepends="$makedepends lua${_i}-dev" subpackages="$subpackages lua${_i}-$_name:_split${_i/./}" - depends="$depends lua${_i}-$_name" done source="http://dev.alpinelinux.org/archive/lua-feedparser/lua-feedparser-$pkgver.tar.gz" @@ -45,6 +44,7 @@ package() { } common() { + depends= mkdir -p "$subpkgdir" mv "$pkgdir"/usr "$subpkgdir"/ } @@ -52,6 +52,7 @@ common() { _split() { pkgdesc="$pkgdesc for Lua $1" depends="lua$1-expat lua-feedparser-common" + install_if="lua$1 $pkgname=$pkgver-r$pkgrel" mkdir -p "$subpkgdir"/usr/share/lua/$1 ln -s ../common/feedparser "$subpkgdir"/usr/share/lua/$1/ ln -s ../common/feedparser.lua "$subpkgdir"/usr/share/lua/$1/ |