summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8bfb0fed5c123ee9bd5397188c707cd74912a404 (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
#Maintainer: Fuzzbop <fuzzbop@gmail.com>
pkgname=objfw-git
pkgver=r4924.835441f9
pkgrel=1
pkgdesc="ObjFW is a portable, lightweight framework for the Objective C language."
arch=('i686' 'x86_64')
url="https://objfw.nil.im/"
license=('QPL' 'GPL2' 'GPLv3')
makedepends=('git' 'clang')
source=("git+https://github.com/ObjFW/ObjFW.git")
md5sums=('SKIP')
_pkgname=ObjFW

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

build() {
  cd "$_pkgname"
  ./autogen.sh
  ./configure --prefix=/usr
  make
}

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