aboutsummaryrefslogtreecommitdiffstats
path: root/main/oniguruma/APKBUILD
blob: bd6e634308a8b5fa29a801ddb4baa89c5e039186 (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
40
41
42
43
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=oniguruma
pkgver=6.8.2
pkgrel=0
pkgdesc="a regular expressions library"
url="http://www.geocities.jp/kosako3/oniguruma/"
arch="all"
license="BSD"
makedepends="automake autoconf libtool"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/kkos/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver

check() {
	cd "$builddir"
	make check
}

prepare() {
	cd "$builddir"
	autoreconf -vfi
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="f07257f5cc1cbffe038a6877014930e5b07ff0bc198bc929806ab26446be71c64f123bf0d7456a9aa96d50c24800426d8d40f51138b2d752fc4c23d260e37497  oniguruma-6.8.2.tar.gz"