aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dhex/APKBUILD
blob: edbbb1271fcc6dc5491414cf6383a4efd139a1a0 (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
42
43
44
45
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dhex
pkgver=0.68
pkgrel=1
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 || return 1
}

md5sums="5109b3d50053553e41d75c8e5c0a0175  dhex_0.68.tar.gz
de16e09d3b416650d84ef39235cd2917  makefile.patch"
sha256sums="126c34745b48a07448cfe36fe5913d37ec562ad72d3f732b99bd40f761f4da08  dhex_0.68.tar.gz
e29f8279a25c6bcc6f43f61c80d08948e40cea67866eed5e745ea5f63af3d291  makefile.patch"
sha512sums="9397ec0574652022387f4108613f839b9262841c436079249fb325011b0a0e3c5bbd32d323f37b0f30e643f7060c1275337710c237ab68fb0c3f8096651a2421  dhex_0.68.tar.gz
0e2aa694723afd859f97f8ea02a79fec02bcbd70b9f4bd8ba1e33743f1fa72fa8810bfb7bac2c7a855bf407cd7c0cbb3ef82c7fea1fcb19a2701ab2d55baf7e3  makefile.patch"