summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 30c7fc528c451b27151413993bd7e653cef6d65f (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
# Maintainer: Federico Di Pierro <nierro92@gmail.com>
# Maintainer: Nathan Owens <ndowens @ artixlinux.org>
pkgname=libulfius
_gitname=ulfius
pkgver=2.6.6
pkgrel=1
pkgdesc="HTTP Framework for REST API in C, using JSON, with websockets and streaming data"
arch=(x86_64)
url="https://github.com/babelouest/${_gitname}"
license=(GPL)
depends=('libmicrohttpd' 'jansson' 'curl' 'gnutls' 'libgcrypt' 'libyder')
makedepends=('git' 'cmake')
source=("git+https://github.com/babelouest/ulfius.git#tag=v${pkgver}")
sha256sums=('SKIP')

prepare() {
    cd "${srcdir}/${_gitname}"
    mkdir -p build
}

build() {
    cd "${srcdir}/${_gitname}"
    cmake -B build \
        -G "Unix Makefiles" \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_LIBDIR=lib \
        -DCMAKE_BUILD_TYPE="Release"
    make -C build
}

package() {
    cd "${srcdir}/${_gitname}"
    make -C build DESTDIR="$pkgdir" install
}