aboutsummaryrefslogtreecommitdiffstats
path: root/testing/debconf/APKBUILD
blob: 7e2f3f4bf6c4a9d5ef20fca9345c17da23ad7789 (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
37
38
39
40
41
42
43
44
45
46
47
48
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=debconf
pkgver=1.5.71
pkgrel=0
pkgdesc="A configuration management system for Debian packages."
url="https://packages.debian.org/debconf"
arch="noarch"
license="BSD-2-Clause"
options="!check" # Test suite is broken. CopyDBTestSetup is missing new method
depends="perl"
makedepends="coreutils findutils po4a"
subpackages="$pkgname-doc $pkgname-lang $pkgname-utils $pkgname-bash-completion:bashcomp:noarch"
source="https://deb.debian.org/debian/pool/main/d/debconf/debconf_$pkgver.tar.xz
	fix-makefile_destdir.patch
	"
builddir="$srcdir/$pkgname"

build() {
	make
}

package() {
	make PREFIX="/usr" DESTDIR="$pkgdir" install-i18n install-doc install-rest
}

utils() {
	depends="$pkgname"
	pkgdesc="Small utilities for debconf developers."

	cd "$builddir"
	make PREFIX="/usr" DESTDIR="$subpkgdir" install-utils
}

bashcomp() {
	depends=""
	pkgdesc="Bash completions for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel bash-completion"

	mkdir -p "$subpkgdir"/usr/share/bash-completion/completions
	install -m 644 "$builddir"/bash_completion \
		"$subpkgdir"/usr/share/bash-completion/completions/debconf
	cd "$subpkgdir"/usr/share/bash-completion/completions
	ln -s debconf debconf-show
}

sha512sums="ec6115a6aea78233e28f932f3eb6af62576b55211187a4253791c540ac74629029af01d95b5b382d01d51e1ae218760188a1eb865c04cc4d59a0006d8aa4c45b  debconf_1.5.71.tar.xz
86c8c0995921a15b67881a7f68f8db4fc785ebc05a03619f597bd71e3cfb628c0c5678b263d42715eded50c3c8b80a7e49a9671949a5f423936fc8801b262b9a  fix-makefile_destdir.patch"