summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 17087eeebfb6d9f863341c18edc418de01ce9dea (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.63.85.gd73faba
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
}