summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5cced744f141d6cc62a1b612e6735b931943729d (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
# Maintainer: Philipp Claßen <philipp.classen@posteo.de>
pkgname=libhttpserver-git
pkgver=r873.d249ba6
pkgrel=1
pkgdesc="C++ library for creating an embedded Rest HTTP server (and more)"
arch=('i686' 'x86_64')
url="https://github.com/etr/libhttpserver"

license=('BSD')

depends=(libmicrohttpd)
provides=(libhttpserver)
conflicts=(libhttpserver)
makedepends=(gcc libtool)
source=('git+https://github.com/etr/libhttpserver.git')
md5sums=('SKIP')

pkgver() {
  cd libhttpserver
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/libhttpserver"
  ./bootstrap
  mkdir -p build
  cd build
  ../configure --prefix=$pkgdir/usr
  make
}

package() {
  cd "${srcdir}/libhttpserver"
  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/libhttpserver/LICENSE"
  
  cd build
  make install
}