summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 08724806642f00c6cfe777b2193e0e474732e425 (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
# Maintainer: Gabriele Fulgaro <gabriele.fulgaro@gmail.com>

_pkgname="strcase"

pkgname="$_pkgname-git"
pkgver=r12.ba6e574
pkgrel=1
pkgdesc="Multiway branch (switch) for short strings in C (in one header file)"
arch=('any')
url="https://github.com/rd235/$_pkgname"
license=('LGPL')
makedepends=('git' 'cmake')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+$url.git")
md5sums=('SKIP')

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

build() {
	cd "$_pkgname"
	cmake -DCMAKE_INSTALL_PREFIX=/usr
}

package() {
	cd "$_pkgname"
	make DESTDIR="$pkgdir/" install
}