# Maintainer: Craig Barnes # Contributor: Leon Belmont pkgname=tweak-hexeditor pkgdesc='Efficient command line hex editor' pkgver=3.02 pkgrel=4 arch=('i686' 'x86_64') depends=('ncurses' 'glibc') url='https://www.chiark.greenend.org.uk/~sgtatham/tweak/' license=('MIT') source=("https://www.chiark.greenend.org.uk/~sgtatham/tweak/tweak-$pkgver.tar.gz") md5sums=('d50e20d9ed05d7cc5eb04ff3f0bf1d9b') sha1sums=('619c2dcb54dfbbff89576d6b34d5483a8642e635') sha256sums=('5b4c19b1bf8734d1623e723644b8da58150b882efa9f23bbe797c3922f295a1a') build() { cd "tweak-$pkgver" # The upstream Makefile is very poorly implemented and doesn't pick # up CFLAGS, CPPFLAGS or LDFLAGS from the environment. make XFLAGS="$CPPFLAGS $CFLAGS" LINK="gcc $LDFLAGS" } package() { cd "tweak-$pkgver" # The "make install" target doesn't support DESTDIR and sets MANDIR # incorrectly. It's simple enough to just install without using it. install -Dm755 tweak "$pkgdir/usr/bin/tweak" install -Dm644 tweak.1 "$pkgdir/usr/share/man/man1/tweak.1" install -Dm644 LICENCE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }