aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dhex/APKBUILD
blob: 5f6fb193d0da71a55224e6ade2f7f23936ecf220 (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
39
40
41
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dhex
pkgver=0.67
pkgrel=0
pkgdesc="Ncurses hex editor"
url="http://www.dettus.net/dhex/"
arch="all"
license="GPL2+"
depends=""
makedepends="ncurses-dev"
install=""
subpackages="$pkgname-doc"
source="http://www.dettus.net/dhex/dhex_$pkgver.tar.gz
		makefile.patch"
_builddir="$srcdir"/dhex_$pkgver

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	make install DESTDIR="$pkgdir" \
		mandir=/usr/share/man \
		prefix=/usr/bin || return 1
}

md5sums="46d24d11b6e389509fff07404aedabb6  dhex_0.67.tar.gz
de16e09d3b416650d84ef39235cd2917  makefile.patch"