summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b06c42b6c35e67b9aa3d88f3194e93f1d016afd5 (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
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=skribilo-git
pkgver=0.9.4.r1010
pkgrel=2
pkgdesc="The Ultimate Document Programming Framework from git"
arch=('any')
url="http://www.nongnu.org/skribilo/"
license=('GPL')
depends=('bash')
makedepends=('git' 'guile-reader' 'ploticus')
provides=('skribilo')
conflicts=('skribilo')
source=("git://git.sv.gnu.org/skribilo.git" makevars.diff Makefile.in.in)
md5sums=('SKIP'
         'fdefd9d3a084f4d48f57df699fb7cdf0'
         '287083fa96f70fd28c8b19aae1c97b6d')
options=('!strip')

pkgver() {
  cd "${pkgname%-git}"
  printf "%s.r%s" $(git describe --tags|tr - _|cut -c2-) $(git rev-list --count HEAD)
}

prepare() {
  cd "${pkgname%-git}"/po
  patch -Np0 < "$srcdir"/makevars.diff
  cp "$srcdir"/Makefile.in.in .
  cd ..
  touch ABOUT-NLS
  echo > gettextize --no-changelog -f
  libtoolize -c -f
  aclocal -I m4 
  automake --add-missing 
  autoreconf -if
}

build() {
  cd "${pkgname%-git}"
  ./configure --prefix=/usr --with-guilemoduledir=/usr/share/guile/site/2.2 
  make
}

package() {
  cd "${pkgname%-git}"
  make DESTDIR="$pkgdir/" install
  rm $pkgdir/usr/share/info/*.png
  install -d "$pkgdir"/usr/share/doc/$pkgname
  find $srcdir/ -name "*.png" -exec install -m644 {} "$pkgdir"/usr/share/doc/$pkgname \;
}