summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 54c13d3fb3ce18392e0f147784f3bdf57b41849b (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
# Maintainer: Thomas Wucher <arch@thomaswucher.de>
pkgname=qhttpserver
pkgver=r134.ca8f327
pkgrel=1
pkgdesc="A Qt HTTP Server - because hard-core programmers write web-apps in C++ :)"
arch=('i686' 'x86_64' 'arm6h' 'arm7h')
url="https://github.com/nikhilm/qhttpserver"
license=('custom')
groups=()
depends=(qt5-base)
makedepends=('git')
replaces=()
backup=()
options=()
install=
source=('qhttpserver::git+https://github.com/nikhilm/qhttpserver.git')
noextract=()
md5sums=('SKIP')
pkgver() {
    cd "$srcdir/${pkgname}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "$srcdir/${pkgname}"
    qmake
    make
}

package() {
    cd "$srcdir/${pkgname}"
    mkdir -p "$pkgdir/usr/include"
    cp src/*.h "$pkgdir/usr/include/"
    cp -r lib "$pkgdir/usr/"
}