From 0ffe23c7d5359027eae0d072a4e0b48ba41ba27e Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Mon, 16 Apr 2018 21:01:23 +0200 Subject: main/lua-inspect: install into lua/common, remove subpkgs --- main/lua-inspect/APKBUILD | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) (limited to 'main/lua-inspect') 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 -- cgit v1.2.3