summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 02709eb5985087942c5617e71b7b7b80cd1d8b1e (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Maintainer: grufo <madmurphy333@gmail.com>

pkgname='libconfini-git'
_pkgname='libconfini'
pkgver='r74.43c29b3'
pkgrel=1
pkgdesc='Yet another INI parser'
arch=('i686' 'x86_64')
url='https://madmurphy.github.io/libconfini/'
license=('GPL')
makedepends=('intltool')
provides=('libconfini')
conflicts=('libconfini')
source=("git+https://github.com/madmurphy/${_pkgname}.git")
md5sums=('SKIP')

pkgver() {

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

}

prepare() {

	cd "${srcdir}/${_pkgname}"
	./autogen.sh
	./configure --prefix=/usr CFLAGS='-pedantic -std=c99 -g -O3'

}

build() {

	cd "${srcdir}/${_pkgname}"
	make

}

check() {

	cd "${srcdir}/${_pkgname}"
	make check

}

package() {

	cd "${srcdir}/${_pkgname}"
	make DESTDIR="${pkgdir}" install
	chmod +x "${pkgdir}/usr/share/doc/${_pkgname}/examples/run_example.sh"

}