summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 233345e7c7b44f510e9221214edc0fcc8d3230b7 (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
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=bibtool-git
pkgver=2.68.r16.g949c09e
pkgrel=1
pkgdesc="Command line manipulation of BibTeX files - from git-repo"
arch=('i686' 'x86_64')
url="http://www.gerd-neugebauer.de/software/TeX/BibTool/"
license=('GPL')
depends=('texlive-bin' 'glibc')
makedepends=('git' 'texlive-core')
provides=('bibtool')
conflicts=('bibtool')
source=("git+https://github.com/ge-ne/bibtool")
md5sums=('SKIP')

pkgver() {
  cd ${pkgname%-git}
  git describe --tags | cut -c9- | tr _ . | sed 's+-+.r+' | tr - .
}

build() {
  cd ${pkgname%-git}
  autoreconf
  ./configure --prefix=/usr
  make all doc
}

package() {
  cd ${pkgname%-git}
  make INSTALLPREFIX="$pkgdir/" install
  install -d "$pkgdir"/usr/share/doc/$pkgname
  cd doc
  for _i in *.pdf
  do
    install -Dm644 ${_i} "$pkgdir"/usr/share/doc/$pkgname/${_i}
  done
}