blob: 0cbf4f8836a250d178da49615dd184e35978968d (
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
|
# Maintainer: Viktor Schneider <info[at]vjs[dot]io>
pkgname=skyr-url-git
_commit=b72d22a
pkgver=5.$_commit
pkgrel=1
pkgdesc="A C++ library that implements the URL WhatWG specification"
arch=('i686' 'x86_64')
url="https://github.com/glynos/url"
license=('Boost')
depends=("tl-expected")
makedepends=('cmake>=3.8.0' 'catch2' 'git' 'nlohmann-json' 'fmt')
source=("git+https://github.com/glynos/url.git")
md5sums=("SKIP")
prepare() {
cd "url"
git checkout $_commit
# patch catch.hpp path to catch2/catch.hpp
find -type f -exec sed -i 's/<catch.hpp>/<catch2\/catch.hpp>/g' {} \;
}
build() {
cd "url"
mkdir -p build
cd build
cmake -DCMAKE_CXX_FLAGS="-Werror=maybe-uninitialized" -DCMAKE_INSTALL_PREFIX=/usr ..
make
}
check() {
cd "url/build"
ctest
}
package() {
cd "url/build"
make DESTDIR="$pkgdir/" install
}
|