summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2e4e74a0f65cac09a301d6ac818ae7b07cfb84a1 (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
# Maintainer: Alexander Hunziker <alex.hunziker@gmail.com>
# Contributor: Alessio Biancalana <dottorblaster@gmail.com>
# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>

pkgname=babl-git
pkgver=0.1.18.12.gef88a22
pkgrel=1
pkgdesc="babl is a dynamic, any to any, pixel format translation library."
arch=('i686' 'x86_64')
url="http://www.gegl.org/babl"
license=('LGPL3')
depends=('glibc')
makedepends=('git')
provides=("babl=${pkgver}")
conflicts=('babl')
options=(!libtool)
source=(git://git.gnome.org/babl)
md5sums=('SKIP')

_gitroot=GITURL
_gitname=babl

build() {
  cd "$srcdir/$_gitname"

  ./autogen.sh --prefix=/usr --disable-docs
  make
}

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

pkgver() {
  cd "${srcdir}/babl"
  git describe --always | sed -e 's/BABL_//g' -e 's/[_-]/./g'
}