diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-04-16 21:01:23 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-04-16 21:02:09 +0200 |
commit | 0ffe23c7d5359027eae0d072a4e0b48ba41ba27e (patch) | |
tree | af69ba86143191f8886c621b4dc928625acda057 /main/lua-inspect | |
parent | 676045dc748b7a291774fb6bf7d761cdea5aa4b7 (diff) | |
download | aports-0ffe23c7d5359027eae0d072a4e0b48ba41ba27e.tar.bz2 aports-0ffe23c7d5359027eae0d072a4e0b48ba41ba27e.tar.xz |
main/lua-inspect: install into lua/common, remove subpkgs
Diffstat (limited to 'main/lua-inspect')
-rw-r--r-- | main/lua-inspect/APKBUILD | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/main/lua-inspect/APKBUILD b/main/lua-inspect/APKBUILD index 082f79e161..bd90124a95 100644 --- a/main/lua-inspect/APKBUILD +++ b/main/lua-inspect/APKBUILD @@ -4,40 +4,31 @@ pkgname=lua-inspect _rockname=inspect _pkgname=inspect.lua pkgver=3.1.1 -pkgrel=0 +pkgrel=1 pkgdesc="Human-readable representation of Lua tables" url="https://github.com/kikito/inspect.lua" arch="noarch" license="MIT" -depends="" -makedepends="" +depends="lua" +provides="" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/kikito/$_pkgname/archive/v$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" _luaversions="5.1 5.2 5.3" for _v in $_luaversions; do - subpackages="$subpackages lua$_v-${pkgname#lua-}:_package" + provides="$provides lua$_v-${pkgname#lua-}=$pkgver-r$pkgrel" # for backward compatibility done package() { - cd "$builddir" - - install -Dm644 README.md \ - "${pkgdir}/usr/share/doc/${pkgname}/README.md" - install -Dm644 MIT-LICENSE.txt \ - "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" -} + local rockdir="$pkgdir/usr/lib/luarocks/rocks-common/$_rockname/$pkgver-1" -_package() { - local lver="${subpkgname:3:3}" - pkgdesc="$pkgdesc (for Lua $lver)" - depends="lua$lver" - install_if="$pkgname=$pkgver-r$pkgrel lua$lver" - local rockdir="$subpkgdir/usr/lib/luarocks/rocks-$lver/$_rockname/$pkgver-1" + cd "$builddir" install -Dm644 "$builddir"/inspect.lua \ - "$subpkgdir"/usr/share/lua/$lver/inspect.lua + "$pkgdir"/usr/share/lua/common/inspect.lua + install -Dm644 README.md \ + "$pkgdir"/usr/share/doc/$pkgname/README.md mkdir -p "$rockdir" echo 'rock_manifest = {}' > "$rockdir"/rock_manifest |