diff options
author | Caleb Maclennan | 2020-02-12 15:09:53 +0300 |
---|---|---|
committer | Caleb Maclennan | 2020-02-12 15:09:53 +0300 |
commit | a2d625b1425fe73412ae1de03fe8b438944a54b7 (patch) | |
tree | f808a9fc54e82addaa5218da8b5a0f187f7171d9 | |
parent | 1e42d5f845ea0cecb320d5a29c1c193e1bf2c03d (diff) | |
download | aur-a2d625b1425fe73412ae1de03fe8b438944a54b7.tar.gz |
Fix Lua packaging to not re-download sources
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 19 |
2 files changed, 14 insertions, 13 deletions
@@ -1,18 +1,18 @@ pkgbase = lua51-formatter pkgdesc = Beautifies Lua code pkgver = 0.1.1 - pkgrel = 1 + pkgrel = 2 url = https://luarocks.org/modules/luarocks/formatter arch = i686 arch = x86_64 license = GPL makedepends = luarocks depends = lua51 - depends = lua15-checks + depends = lua51-checks depends = lua51-metalua-compiler depends = lua51-penlight - source = https://luarocks.org/formatter-0.1.1-1.src.rock - sha256sums = 1db31a2d840cc75e3ecbb6ba21d76085c2efaa639b98667c717da2e2d9317a5f + source = lua51-formatter-0.1.1-1.tar.gz::https://github.com/LuaDevelopmentTools/luaformatter/archive/v0.1.1-1.tar.gz + sha256sums = 77883b9d7322d55d61366e88baf1483a0e4871cdc38b449a3fa3fa33cd157ec5 pkgname = lua51-formatter @@ -1,21 +1,22 @@ # Maintainer: Caleb Maclennan <caleb@alerque.com> -pkgname=lua51-formatter -pkgver=0.1.1 _rockname=formatter +pkgname="lua51-$_rockname" +pkgver=0.1.1 _rockrel=1 -pkgrel=1 +pkgrel=2 pkgdesc="Beautifies Lua code" arch=('i686' 'x86_64') url="https://luarocks.org/modules/luarocks/formatter" license=('GPL') -depends=('lua51' 'lua15-checks' 'lua51-metalua-compiler' 'lua51-penlight') +_lua_deps=('checks' 'metalua-compiler' 'penlight') +depends=('lua51' "${_lua_deps[@]/#/lua51-}") makedepends=('luarocks') -conflicts=() -source=("https://luarocks.org/$_rockname-$pkgver-$_rockrel.src.rock") -sha256sums=('1db31a2d840cc75e3ecbb6ba21d76085c2efaa639b98667c717da2e2d9317a5f') +source=("$pkgname-$pkgver-$_rockrel.tar.gz::https://github.com/LuaDevelopmentTools/luaformatter/archive/v$pkgver-$_rockrel.tar.gz") +sha256sums=('77883b9d7322d55d61366e88baf1483a0e4871cdc38b449a3fa3fa33cd157ec5') package() { - luarocks --lua-version=5.1 --tree="$pkgdir/usr" install --deps-mode=none "$_rockname-$pkgver-$_rockrel.src.rock" - find "$pkgdir/usr" -name manifest -delete + cd "lua$_rockname-$pkgver-$_rockrel" + luarocks --lua-version=5.1 --tree="$pkgdir/usr/" make --deps-mode=none --no-manifest "luarocks/$_rockname-$pkgver-$_rockrel.rockspec" + find "$pkgdir/usr/bin" -type f -execdir sed -i -e "s#$pkgdir##" {} \; } |