aboutsummaryrefslogtreecommitdiffstats
path: root/main/uriparser/APKBUILD
blob: 34dbf84ff30c272b6e76c0b2e5704e754172c84f (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
# Contributor:
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=uriparser
pkgver=0.9.1
pkgrel=0
pkgdesc="A strictly RFC 3986 compliant URI parsing and handling library"
url="https://uriparser.github.io/"
arch="all"
license="BSD"
depends=""
makedepends=""
# libcpptest is missing to run tests
options="!check"
subpackages="$pkgname-dev"
source="https://github.com/uriparser/uriparser/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.bz2"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--prefix=/usr \
		--disable-test \
		--disable-doc \
		--disable-static || return 1
	make || return 1
}

check() {
	cd "builddir"
	make test
}

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

sha512sums="c6a4f3b737d4c53ba14148a5be363d93947c8c32755b369726ccdd6e01e8a2293d2c94d448700fc97bb56092696b67965646ae07c9ef31be253e2279d0bc3821  uriparser-0.9.1.tar.bz2"