aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/dhex/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/dhex/APKBUILD')
-rw-r--r--unmaintained/dhex/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/unmaintained/dhex/APKBUILD b/unmaintained/dhex/APKBUILD
new file mode 100644
index 00000000000..edbbb1271fc
--- /dev/null
+++ b/unmaintained/dhex/APKBUILD
@@ -0,0 +1,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"