summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5516c3fc2e817fc3453872ea0a38b4eae628223f (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
# Maintainer: Boothwhack <boothwhack at gmail dot com>
pkgname=skyr-url
pkgver=1.13.0
pkgrel=1
pkgdesc="A C++ library that implements the URL WhatWG specification"
arch=("i686" "x86_64")
url="https://github.com/cpp-netlib/url"
license=("Boost")
depends=("tl-expected" "range-v3" "nlohmann-json")
makedepends=("cmake>=3.16.0" "git")
source=("https://github.com/cpp-netlib/url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=("0c9e594f09a9abda5815b07b548ac520b2fc1044fc74b589fc4c5bd18ea4330c")

prepare() {
    cd "${srcdir}/url-${pkgver}"
    rm -rf build && mkdir build
}

build() {
    cd "${srcdir}/url-${pkgver}/build"

    cmake .. \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -Dskyr_BUILD_TESTS=OFF
    make
}

package() {
    cd "${srcdir}/url-${pkgver}/build"

    make DESTDIR="$pkgdir/" install
}