# Maintainer: Luis Henrique <lmello.009@gmail.com>

# Mandatory
pkgname=hexedit
pkgver=1.2.12
pkgrel=1lm
source=("http://rigaux.org/hexedit-1.2.12.src.tgz")
# Optional
docs=("COPYING" "Changes" "TODO")
url="http://prigaux.chez.com/hexedit.html"
 
slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"hexedit (Simple hex editor)"
"hexedit shows a file both in ASCII and in hexadecimal. The file"
"can be a device as the file is read a piece at a time. You can"
"modify the file and search through it."
)

build() {
        cd $startdir/src/$pkgname
        ./configure \
          --prefix=/usr \
          --mandir=/usr/man \
          --build=$arch-slackware-linux
        make || return 1
        # Apparently, 'make install DESTDIR=$PKG' doesn't work
        /usr/bin/ginstall -d -m 0755 $PKG/usr/bin
        /usr/bin/ginstall -m 0755 hexedit $PKG/usr/bin
        /usr/bin/ginstall -d -m 0755 $PKG/usr/man/man1
        /usr/bin/ginstall -m 0644 hexedit.1 $PKG/usr/man/man1
}