blob: 9351ef5d71bb180e8e307ed6504acb182cd84aa8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=lua-lub
_rockname=lub
pkgver=1.1.0
pkgrel=2
pkgdesc="Lubyk base module for Lua"
url="http://doc.lubyk.org/lub.html"
arch="noarch"
license="MIT"
depends="lua lua-filesystem"
provides=""
source="$pkgname-$pkgver.tar.gz::https://github.com/lubyk/$_rockname/archive/REL-$pkgver.tar.gz"
builddir="$srcdir/$_rockname-REL-$pkgver"
for _v in 5.1 5.2 5.3; do
provides="$provides lua$_v-$_rockname=$pkgver-r$pkgrel"
done
package() {
local rockdir="$pkgdir/usr/lib/luarocks/rocks-common/$_rockname/$pkgver-2"
mkdir -p "$pkgdir"/usr/share/lua/common
cp -r "$builddir"/lub "$pkgdir"/usr/share/lua/common/
mkdir -p "$rockdir"
echo 'rock_manifest = {}' > "$rockdir"/rock_manifest
}
sha512sums="46f18cfc12d919694ddba7ab875e579381cd964c18b91dfb46d4f8091b90fd7daef96eaf0e16bd4fb3e01962adb74eeed47259aac014ebf24f85955d99a873f3 lua-lub-1.1.0.tar.gz"
|