# Maintainer: Morten Linderud <foxboron@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Paul Mattal <pjmattal@elys.com>

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

prepare() {
  cd "${pkgname}-${pkgver}"
  ./autogen.sh
}

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

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