# $Id: PKGBUILD 280705 2018-01-09 15:36:02Z foxboron $
# Maintainer: Morten Linderud <foxboron@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Paul Mattal <pjmattal@elys.com>

pkgname=hexedit
pkgver=1.4.2
pkgrel=1
pkgdesc="View and edit files in hexadecimal or in ASCII"
arch=('x86_64')
url="http://rigaux.org/hexedit.html"
license=('GPL')
depends=('ncurses')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/pixel/hexedit/archive/${pkgver}.tar.gz")
sha256sums=('c81ffb36af9243aefc0887e33dd8e41c4b22d091f1f27d413cbda443b0440d66')

build() {
  cd "${pkgname}-${pkgver}"
  ./autogen.sh && ./configure
  make
}

package() {
  cd "${pkgname}-${pkgver}"
  make prefix="${pkgdir}/usr" install
}
