summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8c02f41a9a1c3d35c3ae6e4d8a6bf312558bd316 (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: Michael Schubert <mschu.dev at gmail> github.com/mschubert/PKGBUILDs
pkgname=adaptagrams-git
_pkgname=${pkgname%-git}
pkgver=r1249.d00ce593
pkgrel=1
pkgdesc="A library for adaptive diagramming applications"
arch=('i686' 'x86_64')
url="https://github.com/mjwybrow/$_pkgname"
license=('LGPL')
optdepends=('cairo')
makedepends=('git')
options=('!libtool')
source=("git+$url")
sha256sums=('SKIP')

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

build() {
  cd "$srcdir/$_pkgname/cola"
  mkdir m4 || true
  aclocal
  autoreconf --install
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$_pkgname/cola"
  make DESTDIR="$pkgdir" install
  install -m644 "libcola/exceptions.h" "$pkgdir/usr/include/libcola/"
}