summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e2d1a7efdeba6b0ffbfdb372ad874e3a3a4dbf2b (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
# Maintainer: Frederic Bezies < fredbezies at gmail dot com >
# Contributor: Cosku Bas <cosku.bas@gmail.com>

pkgname=objectivelymvc-git
pkgver=r873.5dbd343
pkgrel=1
pkgdesc="Object oriented MVC framework for OpenGL, SDL2 and GNU C. Inspired by Apple's AppKit."
arch=('i686' 'x86_64')
url="https://github.com/jdolan/ObjectivelyMVC"
license=('zlib')

makedepends=('git' 'clang' 'autoconf' 'automake' 'check')
depends=('objectively-git' 'sdl2' 'sdl2_image' 'sdl2_ttf' 'fontconfig')

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

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


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

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