blob: 10424ff0e556c1c7892fdfb71aff4fe67f7416d6 (
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
44
45
46
47
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=uriparser
pkgver=0.9.3
pkgrel=0
pkgdesc="A strictly RFC 3986 compliant URI parsing and handling library"
url="https://uriparser.github.io/"
arch="all"
license="BSD-3-Clause"
makedepends="cmake gtest-dev"
subpackages="$pkgname-dev lib$pkgname:libs"
source="https://github.com/uriparser/uriparser/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.bz2
disable-test.patch"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
-DURIPARSER_BUILD_DOCS=OFF \
-DURIPARSER_BUILD_TOOLS=ON \
-DURIPARSER_BUILD_TESTS=ON \
-DBUILD_SHARED_LIBS=ON \
${CMAKE_CROSSOPTS}
make
}
check() {
cd "$builddir"
make test ARGS=--verbose
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
sha512sums="424419ea7b5f945b37ea06091d59e731c6a7ee76e7998f8a4e598036b3de8b593d62d1af6c6ddc7c31b43fc6795d4a5fa8d50da2508ca19de100a2222106fa3e uriparser-0.9.3.tar.bz2
d4fb8786cf5580713ec5f8babfe6e4c91482e00e20c46bc700b05e8f01739ce692834b9bc7d76eabb9263afea2655a27f69cec4215ba39204a8476729fcf67f1 disable-test.patch"
|