summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ad5126a48572bb2492d5f4c679b2d205019ef0dc (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
# Maintainer: Éric NICOLAS <ccjmne@gmail.com>
pkgname=par-git
pkgver=1.53.0.r0.eb0590f
pkgrel=1
pkgdesc="Adam M. Costello's paragraph reformatter, vaguely similar to fmt, but better."
arch=('x86_64')
url="http://www.nicemice.net/par/"
license=('MIT')
groups=()
makedepends=('git' 'cmake')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
backup=()
options=()
install=
source=('upstream::git+https://bitbucket.org/amc-nicemice/par.git')
noextract=()
md5sums=('SKIP')

pkgver() {
	cd upstream
	printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

build() {
	cd upstream
  make -f protoMakefile CC="cc -c" LINK1="cc" LINK2="-o" RM="rm" JUNK="" $*
}

check() {
	cd upstream
  ./test-par ./par
}

package() {
	cd upstream
  install -D -m755 "par" "$pkgdir/usr/bin/par"
}