blob: 3b90a2afceb2b898d20011e30bb07184e9837483 (
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
|
# Maintainer: Aaron Bishop < erroneous at gmail >
pkgname=fastcgi++-git
_pkgname=fastcgipp
pkgver=3.0.r113.gd70b53e
pkgrel=1
pkgdesc="This library is intended as a high-efficiency C++20 api for web development."
arch=('x86_64')
url="https://github.com/eddic/fastcgipp"
license=('LGPL')
depends=()
makedepends=('cmake' 'git')
conflicts=('fastcgi++')
provides=("fastcgi++=${pkgver}")
source=("git+https://github.com/eddic/fastcgipp.git")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cmake -B build -S "${_pkgname}" \
-DCMAKE_BUILD_TYPE=RELEASE \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-Wno-dev
cmake --build build
}
package() {
DESTDIR="${pkgdir}" cmake --install build
}
test() {
ctest --test-dir build
}
|