summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d723a24562754e1c9bae7e3196ad6c27b81b0748 (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
48
# Maintainer: Aaron Bishop < erroneous at gmail >

pkgname=fastcgi++-git
_pkgname=fastcgipp
pkgver=3.0.r88.g02ca540
pkgrel=1
pkgdesc="This library is intended as a high-efficiency C++14 api for web development."
arch=('x86_64')
url="https://fastcgipp.isatec.ca"
_url="https://github.com/eddic/fastcgipp"
license=('LGPL')
depends=()
makedepends=('git')
conflicts=('fastcgi++')

source=("git+$_url.git")

sha256sums=('SKIP')

pkgver() {
    cd "$_pkgname"
    git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
    rm -Rf build
    mkdir build
    cd build
    cmake ../$_pkgname \
      -DCMAKE_BUILD_TYPE=RELEASE \
      -DCMAKE_INSTALL_PREFIX:PATH=/usr
}

build() {
    cd build
    make
}

package() {
    cd build
    make DESTDIR="${pkgdir}" install
}

test() {
    cd build
    make tests
    make test
}