blob: 9c52d6888e1e98932c092922120f1c6c136bf4a7 (
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
|
# Contributor: strata <strata@dropswitch.net>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
# Maintainer: osch <oliver@luced.de>
pkgname=lrexlib-tre
pkgver=2.9.1
pkgrel=1
_rockrel=1
pkgdesc="Regular expression library for Lua - TRE version"
arch=('i686' 'x86_64')
url="https://luarocks.org/modules/rrt/$pkgname"
license=('custom')
depends=('lua' 'tre')
makedepends=('luarocks')
source=(
"https://luarocks.org/$pkgname-$pkgver-$_rockrel.src.rock"
)
noextract=(
"$pkgname-$pkgver-$_rockrel.src.rock"
)
package() {
_luaver=$(lua -e 'io.write(_VERSION:gsub("^.* (.*)$","%1"),"")')
luarocks --lua-version $_luaver --tree="$pkgdir/usr" install "$pkgname-$pkgver-$_rockrel.src.rock"
mkdir -p "$pkgdir/usr/share/doc"
mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
mv "$pkgdir/usr/lib/luarocks/rocks-"*"/$pkgname/$pkgver-$_rockrel/doc" "$pkgdir/usr/share/doc/$pkgname"
chmod -R 0644 "$pkgdir/usr/share/doc/$pkgname"/*
rm -f "$pkgdir/usr/share/doc/$pkgname/.gitignore"
ln -s "../../doc/$pkgname/license.html" "$pkgdir/usr/share/licenses/$pkgname/license.html"
rm -rf "$pkgdir/usr/lib/luarocks"
}
md5sums=('d394dd23219c52948dd3f8d839589294')
|