summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d3f3a1ded0e0c60d68d17eaf7f8d420ef264f0f8 (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="libvolatilestream"

pkgname="$_pkgname-git"
pkgver=r4.c2812a8
pkgrel=1
pkgdesc="volatile stream = stdio FILE* stream as a temporary dynamically allocated (and deallocated) memory buffer"
arch=('any')
url="https://github.com/rd235/$_pkgname"
license=('GPL2')
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
	make
}

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