summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7affd2c572798b30e40fe11db565cd6846f0d78a (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
# Maintainer: xfnw <xfnw@riseup.net>

pkgname=justify-git
pkgver=r17.5ad543a
pkgrel=1
pkgdesc="Simple text alignment tool that supports left/right/center/fill justify alignment"
arch=('x86_64')
url="https://tildegit.org/jns/justify/"
license=('GPL3')
depends=('gcc-libs')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://tildegit.org/jns/justify.git')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/${pkgname%-git}"
	make
}

package() {
	cd "$srcdir/${pkgname%-git}"
	install -D "${pkgname%-git}" "$pkgdir/usr/bin/${pkgname%-git}"
}