summaryrefslogtreecommitdiff
path: root/system/debianutils/APKBUILD
blob: d3f7d1ce8ab491d3c46dfe735ef22487f2818622 (plain) (blame)
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
37
38
39
40
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=debianutils
pkgver=4.9.1
pkgrel=0
pkgdesc="Miscellaneous utilities from Debian"
url="https://packages.qa.debian.org/d/debianutils.html"
arch="all"
options="!check"  # No test suite.
license="BSD-3-Clause AND GPL-2.0+"
depends="coreutils mawk"  # awk, cat, and rm are required by add-shell
makedepends="grep"  # early package, declare these
subpackages="$pkgname-doc $pkgname-which::noarch"
source="http://ftp.debian.org/debian/pool/main/d/$pkgname/${pkgname}_${pkgver}.tar.xz"

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

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

which() {
	provider_priority=10
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/which "$subpkgdir"/usr/bin/
	# This will emit a warning about docs on abuild, but this is expected.
	mkdir -p "$subpkgdir"/usr/share/man/man1
	mv "${pkgdir}-doc"/usr/share/man/man1/which* "$subpkgdir"/usr/share/man/man1/
}

sha512sums="b442950febe6df9e15ec04a6fec0ee8be12d3eac38dc3f9331438d871e3382f4e0f599da0eaeff0e7e9ba0fa5136ce3c3b51c6718e4d7f11c1675f745052a9b1  debianutils_4.9.1.tar.xz"