summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 711b75a3c20b0de7c01207d7b845660d7f40c56a (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: Cosku Bas <cosku.bas@gmail.com>

pkgname=objectively-git
pkgver=r331.170d201
pkgrel=1
pkgdesc="Ultra-lightweight object oriented framework for GNU C."
arch=('i686' 'x86_64')
url="https://github.com/jdolan/Objectively"
license=('zlib')

makedepends=('git' 'clang' 'autoconf' 'automake' 'check')

source=(git://github.com/jdolan/Objectively)
sha1sums=('SKIP')

build() {
	cd Objectively
	autoreconf -i
	./configure --prefix=/usr
	make
}

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

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