summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6287df91328347f527bcc92c55f247d57030e36b (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: Jef Roosens

pkgname=yip-git
pkgver=0.1.3.r4.g164de8a
pkgrel=1
pkgdesc="Performant, lightweight HTTP server that echoes the client's IP address, written in plain C. (development version)"
arch=('x86_64')

url='https://github.com/jenspots/yip'
license=('AGPL-3.0')

depends=('glibc')
makedepends=('git' 'cmake')

provides=('yip')
conflicts=('yip')

source=("${pkgname}::git+https://github.com/jenspots/yip#branch=main")
md5sums=('SKIP')

pkgver() {
    git -C "${pkgname}" describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cmake -B build -S "${pkgname}" \
        -DCMAKE_BUILD_TYPE='None' \
        -DCMAKE_INSTALL_PREFIX='/usr' \
        -Wno-dev
    cmake --build build
}

package() {
    DESTDIR="${pkgdir}" cmake --install build
}