summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f0b84c92ec587a9a8a73f2791d0e199a07fa6efa (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
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=bibtool-git
pkgver=2.61.27.g5b68023
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')
makedepends=('git')
provides=('bibtool')
conflicts=('bibtool')
source=("git+https://github.com/ge-ne/bibtool")
md5sums=('SKIP')
options=('!makeflags')
_gitname="bibtool"

pkgver() {
  cd "$srcdir"/"$_gitname"
  git describe --tags | sed 's|[-_]|.|g' | cut -c9-
}

build() {
  cd "$srcdir"/"$_gitname"
  autoreconf
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$_gitname"
  install -d "$pkgdir"/usr/bin
  make INSTALLPREFIX="$pkgdir/" install
}