blob: 717d751fd138668865218142e65c09bab8950a6e (
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-oniguruma
pkgver=2.9.1
pkgrel=1
_rockrel=1
pkgdesc="Regular expression library for Lua - Oniguruma version"
arch=('i686' 'x86_64')
url="https://luarocks.org/modules/rrt/$pkgname"
license=('custom')
depends=('lua' 'oniguruma')
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=('fe47b912edeec664234c60b930389681')
|