summaryrefslogtreecommitdiff
path: root/system/console-setup/APKBUILD
blob: 8097133b764735d1478b3088b22faf90b89cdb86 (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
41
42
43
44
45
46
47
48
49
50
51
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=console-setup
pkgver=1.187
pkgrel=0
pkgdesc="Set up console font and keyboard layout"
url="https://salsa.debian.org/installer-team/console-setup"
arch="noarch"
options="!check"  # No test suite.
license="MIT AND GPL-2.0+ AND BSD-3-Clause"
depends="kbd"
makedepends="perl"
install=""
subpackages="$pkgname-doc console-fonts:fonts console-keymaps:keymaps
	$pkgname-openrc ckbcomp"
source="http://ftp.de.debian.org/debian/pool/main/c/$pkgname/${pkgname}_$pkgver.tar.xz
	console-setup.initd
	"

build() {
	cd "$builddir"
	make build-linux
}

package() {
	cd "$builddir"
	make prefix="$pkgdir/usr" etcdir="$pkgdir/etc" xkbdir= install-linux
	install -D -m755 "$srcdir"/console-setup.initd "$pkgdir"/etc/init.d/console-setup
}

fonts() {
	pkgdesc="Console fonts for use with $pkgname"
	mkdir -p "$subpkgdir"/usr/share
	mv "$pkgdir"/usr/share/consolefonts "$subpkgdir"/usr/share/
}

keymaps() {
	pkgdesc="Keyboard layouts for use with $pkgname"
	mkdir -p "$subpkgdir"/etc/console-setup
	mv "$pkgdir"/etc/console-setup/ckb "$subpkgdir"/etc/console-setup/
}

ckbcomp() {
	pkgdesc="XKB keyboard layout translation utility"
	depends="perl"
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/ckbcomp "$subpkgdir"/usr/bin/
}

sha512sums="7bdf9ccfea9d78540ecd37510fea559f0570bc4867db4636e74203b7c5a584fbe33a7847a6b87baf243e420d67d8b051266782c6a87c9ffd1062a2b03b1d131c  console-setup_1.187.tar.xz
3b8e2c9d8551f9a51bcd33e58771a4f55ff2840f8fe392e0070bd2b6a3911cd9ed9377873538f6904fd99836ac4e0280c712be69d275aae9183dd12ff7efddae  console-setup.initd"