summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorideal2018-10-26 12:16:46 +0800
committerideal2018-10-26 12:16:46 +0800
commitf7e7af3b7345942fd50025cf81111b3fe236bc80 (patch)
treebc9ec9ef22cd2c11721ebedf625f0246d625d635
downloadaur-f7e7af3b7345942fd50025cf81111b3fe236bc80.tar.gz
add dhex-git: dhex with some bug fixes
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD29
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f7b198445fb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = dhex-git
+ pkgdesc = An ncurses-based hexeditor with a diff mode
+ pkgver = 0.68
+ pkgrel = 5
+ url = https://github.com/ideal/dhex/
+ arch = x86_64
+ license = GPL
+ depends = ncurses
+ source = git+https://github.com/ideal/dhex.git
+ md5sums = SKIP
+
+pkgname = dhex-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..99b20767d5c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Shang Yuanchun <idealities@gmail.com>
+
+pkgname=dhex-git
+pkgver=0.68
+pkgrel=5
+pkgdesc="An ncurses-based hexeditor with a diff mode"
+arch=('x86_64')
+url="https://github.com/ideal/dhex/"
+license=('GPL')
+depends=('ncurses')
+conflictc=('dhex')
+source=("git+https://github.com/ideal/dhex.git")
+md5sums=('SKIP')
+
+dirname=dhex
+
+build() {
+ cd "${srcdir}/${dirname}"
+ make
+}
+
+package() {
+ cd "${srcdir}/${dirname}"
+ install -d "${pkgdir}"/usr/{bin,share}
+ install -d "${pkgdir}"/usr/man/man{1,5}
+ make DESTDIR="${pkgdir}/usr" install
+ mv "${pkgdir}/usr/man" "${pkgdir}/usr/share/man"
+}
+