aboutsummaryrefslogtreecommitdiffstats
path: root/community/bvi/APKBUILD
blob: 1e62fc87833eff6f44c9f3457b4af8996f3576d0 (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
32
33
34
35
36
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=bvi
pkgver=1.4.1
pkgrel=0
pkgdesc="Display-oriented editor for binary files based on vi"
url="http://bvi.sourceforge.net"
arch="all"
license="GPL-3.0-or-later"
makedepends="ncurses-dev"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/sourceforge/bvi/bvi-$pkgver.src.tar.gz
	fix-implicit.patch"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--datadir=/usr/share/doc
	make
}

package() {
	make DESTDIR="$pkgdir" install

	mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
	install -Dm644 CHANGES README CREDITS \
		"$pkgdir"/usr/share/doc/$pkgname/
}

sha512sums="f7a3f07e6bcefe566a101c4db85192f0d2e3580be0ab10bc297e6c0192e79d29061a7c9f1a57cf5a628f03962deb8c2ed52e33effc1d5198d458627d70d882e6  bvi-1.4.1.src.tar.gz
b2cb59d82939202df5b12f640182d619cbec25b22aaba0dd9853ee75c7bc285c8f2366d311ebf795e8f78b6daf828545494993f84925fdf4f6d2c12796d9bb32  fix-implicit.patch"