summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8eae4c0fdebfaf688aed9ab5c857b53912d509c8 (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: Marat Moustafine <m-dash-moustafine-at-yandex-dot-ru>

_pkgname=silicon
pkgname=$_pkgname-git
pkgver=latest
pkgrel=1
pkgdesc='A high performance, middleware oriented C++14 http web framework'
arch=('any')
url='https://github.com/matt-42/silicon'
license=('MIT')
makedepends=('cmake' 'git')
optdepends=('iod: for introspection of objects and generation code matching their data structures'
            'libmicrohttpd: for microhttpd backend')
provides=($_pkgname)
conflicts=($_pkgname)
source=(git+$url.git)
sha256sums=('SKIP')

pkgver() {
  cd $_pkgname
  git describe --long --tags | sed -r 's/^v//;s/-/+/g'
}

build () {
  cd $_pkgname
  mkdir -p build

  cd build
  cmake \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    ..
  make
}

package() {
  cd $_pkgname
  install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE

  cd build
  make DESTDIR=$pkgdir install
}