summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 60046e8df20d2015288f42258e9e257bf741b1fd (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
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>

pkgname=hxl-git
pkgver=1.0.r7.g6f3218e
pkgrel=1
pkgdesc="Small, optimized terminal hex viewer"
arch=('x86_64')
url="https://github.com/sjmulder/hxl"
license=('BSD')
depends=('glibc')
makedepends=('git')
provides=('hxl')
conflicts=('hxl')
source=("$pkgname::git+$url")
sha256sums=('SKIP')

pkgver() {
	git -C "$pkgname" describe --long --tags | sed 's/-/.r/;s/-/./'
}

build() {
	cd "$pkgname"
	make
}

package() {
	cd "$pkgname"
	make DESTDIR="$pkgdir" PREFIX=/usr MANPREFIX=/usr/share/man install
	install -Dm 644 LICENSE.md -t "$pkgdir/usr/share/licenses/$pkgname/"
	install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}