summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 81353a3c73c539f4136da7ec68d054ff6abed803 (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
39
40
41
42
43
# Maintainer: Markus Kalb <mk@filmkreis.tu-darmstadt.de>
# Contributor: Stefan Karner <stefan.karner@student.tuwien.ac.at>
pkgname=libcxml-git
pkgver=0.r69.ba540d3
pkgrel=3
pkgdesc="A small C++ library which makes it marginally neater to parse XML using libxml++"
arch=('i686' 'x86_64')
url="http://carlh.net/software/libcxml/"
license=('GPL')
groups=
depends=('libxml++>=2.6' 'boost-libs')
makedepends=('python2' 'pkg-config' 'boost')
optdepends=()
provides=(libcxml)
conflicts=(libcxml)
replaces=()
backup=()
options=()
install=
source=("libcxml-git::git+http://git.carlh.net/git/libcxml.git")
sha256sums=('SKIP')


# git variables
_gitname='libcxml-git'

pkgver() {
  cd "$_gitname"

  printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd  "$_gitname"
  python2 waf configure --prefix=/usr
  python2 waf build
}

package() {
  cd  "$_gitname"
  python2 waf install --destdir=$pkgdir
}