summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9faab2897577d241ecdd655fc6a22dbc678691a8 (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
# Maintainer: QuantMint quant/mint/@/tutanota./de
pkgname=fastcgi++
_pkgname=fastcgipp
pkgver=3.0
pkgrel=1
pkgdesc="This library is intended as a high-efficiency C++14 api for web development."
arch=('x86_64' 'i686')
license=('LGPL')
depends=()
makedepends=('cmake')
conflicts=('fastcgi++')
url=https://fastcgipp.isatec.ca/
source=("https://github.com/eddic/fastcgipp/archive/3.0.tar.gz")

sha256sums=('SKIP')

prepare() {
		cd $srcdir
		tar -xf "${pkgver}.tar.gz"
    rm -Rf build
    mkdir build
    cd build
    cmake ../"${_pkgname}-${pkgver}" \
      -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
}