summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0efae700cdc4a8859fe447eaf53c603eaa58803e (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
# Maintainer: Alex Henrie <alexhenrie24@gmail.com>
pkgname=hx-git
pkgver=1.0.14.r0.c124b40
pkgrel=1
pkgdesc='Hex editor for the terminal using plain C99 + POSIX libs'
arch=('x86_64')
url='https://github.com/krpors/hx'
license=('MIT')
provides=('hx')
conflicts=('hx')
source=('git+https://github.com/krpors/hx')
sha256sums=('SKIP')

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

build() {
	cd hx
	make
}

package() {
	cd hx
	make DESTDIR="$pkgdir/" PREFIX='/usr' install
}