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

pkgname=objectivelymvc-git
pkgver=r907.f1c4b3c
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+https://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
}