summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 44de9784f5b6fbc78968a15c177d19ce8a672ee7 (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
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=skribilo-git
pkgver=0.9.4.r13.g47fd87d
pkgrel=2
epoch=1
pkgdesc="The Ultimate Document Programming Framework from git"
arch=('x86_64')
url="http://www.nongnu.org/skribilo/"
license=('GPL')
depends=('bash')
makedepends=('git' 'guile-git' 'guile3.0-reader' '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}"
  git describe --tags|sed  's+-+.r+' | tr - . | cut -c2-
}

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}"
  GUILE_EFFECTIVE_VERSION=3.0 GUILE=/usr/bin/guile3.0 ./configure --prefix=/usr 
  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 \;
}