mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
main/lua-lustache: install minimal rock_manifest
This commit is contained in:
parent
823f076f15
commit
109fe2c680
@ -4,7 +4,7 @@ _pkgname=lustache
|
||||
pkgname=lua-$_pkgname
|
||||
pkgver=1.3.1
|
||||
_pkgver=$pkgver-0
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="Logic-less {{mustache}} templates with Lua"
|
||||
url="http://olivinelabs.com/lustache/"
|
||||
arch="noarch"
|
||||
@ -38,12 +38,16 @@ _package() {
|
||||
pkgdesc="$pkgdesc $lver"
|
||||
depends="$pkgname-common lua$lver"
|
||||
install_if="$pkgname=$pkgver-r$pkgrel lua$lver"
|
||||
local rockdir="$subpkgdir/usr/lib/luarocks/rocks-$lver/$_pkgname/$_pkgver"
|
||||
|
||||
mkdir -p "$subpkgdir"/usr/share/lua/$lver
|
||||
local path; for path in lustache lustache.lua; do
|
||||
ln -s ../common/$path "$subpkgdir"/usr/share/lua/$lver/$path \
|
||||
|| return 1
|
||||
done
|
||||
|
||||
mkdir -p "$rockdir"
|
||||
echo 'rock_manifest = {}' > "$rockdir"/rock_manifest
|
||||
}
|
||||
|
||||
md5sums="e4416abe1a822c1b2d4b3a9e702d5795 lua-lustache-1.3.1.tar.gz"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user