blob: 70449d1e8ff85b000499a1aa9d32bfb371606508 (
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
31
32
33
34
35
36
37
38
39
|
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=lua-lub
_pkgname=lub
pkgver=1.1.0
pkgrel=0
pkgdesc="Lubyk base module for Lua"
url="http://doc.lubyk.org/lub.html"
arch="noarch"
license="MIT"
depends=""
makedepends=""
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/lubyk/$_pkgname/archive/REL-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-REL-$pkgver"
_luaversions="5.1 5.2 5.3"
for _v in $_luaversions; do
makedepends="$makedepends lua$_v-dev"
subpackages="$subpackages lua$_v-$_pkgname:_subpackage"
done
package() {
mkdir -p "$pkgdir"
}
_subpackage() {
local lver="${subpkgname:3:3}"
pkgdesc="$pkgdesc $lver"
depends="$depends lua$lver lua$lver-filesystem"
install_if="$pkgname=$pkgver-r$pkgrel lua$lver"
mkdir -p "$subpkgdir"/usr/share/lua/$lver
cp -r "$builddir"/lub "$subpkgdir"/usr/share/lua/$lver/
}
md5sums="093cbf163ef2fea60031aea2619ae4b9 lua-lub-1.1.0.tar.gz"
sha256sums="355f427f28155c4cf3a9673aa24c3754ea782c1c5f2081cbc4c28c00ed69a0b7 lua-lub-1.1.0.tar.gz"
sha512sums="46f18cfc12d919694ddba7ab875e579381cd964c18b91dfb46d4f8091b90fd7daef96eaf0e16bd4fb3e01962adb74eeed47259aac014ebf24f85955d99a873f3 lua-lub-1.1.0.tar.gz"
|