-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
28 lines (25 loc) · 888 Bytes
/
PKGBUILD
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
# Maintainer: Massimiliano Torromeo <[email protected]>
# Contributor: Andreas Wagner <Andreas dot Wagner at em dot uni-frankfurt dot de>
pkgname=oniguruma
pkgver=6.9.8
pkgrel=1
pkgdesc="a regular expressions library"
arch=('x86_64' 'aarch64')
url="https://github.com/kkos/oniguruma"
license=('BSD')
source=("https://github.com/kkos/oniguruma/releases/download/v$pkgver/onig-${pkgver/_/-}.tar.gz")
sha256sums=('28cd62c1464623c7910565fb1ccaaa0104b2fe8b12bcd646e81f73b47535213e')
build() {
cd "$srcdir"/onig-${pkgver%.1}
./configure --prefix=/data/usr --enable-posix-api
make
}
package() {
cd "$srcdir"/onig-${pkgver%.1}
make DESTDIR="$pkgdir" install
install -dm755 "$pkgdir"/data/usr/share/doc
cp -r doc "$pkgdir"/data/usr/share/doc/$pkgname
for licfile in COPYING INSTALL; do
install -Dm644 $licfile "$pkgdir"/data/usr/share/licenses/$pkgname/$licfile
done
}