summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6e7c9e2f62627e69184eb525d082aca062c3a5a5 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Maintainer: not_anonymous <nmlibertarian@gmail.com>

# Based on gnucash-docs <- de extra repo
#		^^^^^ Current Maintainer: Juergen Hoetzel <juergen@archlinux.org>
# AND on gnucash-git <- de aur
# 		^^^^^ Current Maintainer: not_anonymous <nmlibertarian@gmail.com>

pkgname=gnucash-docs-git
_pkgname=gnucash-docs
__pkgname=Gnucash
pkgver=2.6.5
#.r22.g874ac13
pkgrel=1
pkgdesc="GnuCash documentation package - GIT version"
arch=('any')
url="http://www.gnucash.org/docs.phtml"
license=('GPL3' 'FDL')
depends=('yelp')
makedepends=('rarian' 'docbook-xsl' 'libtool' 'autoconf' 'automake')
conflicts=('gnucash-docs')
provides=('gnucash-docs')
source=("$pkgname::git+https://github.com/${__pkgname}/${_pkgname}.git")

pkgver() {
	cd $srcdir/$pkgname

	( set -o pipefail
	  git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
	  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
	)
}

prepare() {
	cd "$srcdir/$pkgname"

	./autogen.sh
}

build() {
	cd $srcdir/$pkgname

	./configure --prefix=/usr
	make
}

check() {
	cd $srcdir/$pkgname

	make -k check
}

package() {
	cd $srcdir/$pkgname

	make DESTDIR="$pkgdir/" install
}
md5sums=('SKIP')
sha256sums=('SKIP')