summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9059241b06c57bb08cf57206e8d58942e0456538 (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
# Maintainer: Shang Yuanchun <idealities@gmail.com>

pkgbase=dhex
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"
}