blob: b064fa584fd03dcfb3e8fe772b033fee3de8de75 (
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
31
|
# Maintainer: Craig Barnes <cr@igbarn.es>
# Contributor: Leon Belmont <meow AT linux DOT cn>
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"
}
|