summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 59aad4976fdc4413f58b3821a6d058d0ecf2233b (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
 #Maintainer: Kobus van Schoor <pbscube at gmail dot com>
pkgname=nihdb
pkgver=1.0.1
pkgrel=1
pkgdesc="An easy-to-use C++ database library"
url="http://github.com/Cube777/nihdb"
arch=('x86_64' 'i686')
source=('git+https://github.com/Cube777/nihdb.git')
md5sums=('SKIP')

prepare() {
	cd $pkgname
	git --work-tree . checkout -q tags/$pkgver
}
build() {
	cd $srcdir/$pkgname
	cmake ./ -DCMAKE_INSTALL_PREFIX=/usr
	make
}

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