summaryrefslogblamecommitdiff
path: root/system/kbd/APKBUILD
blob: 38a367e1053384b8201283f5a1d5a171e83b4262 (plain) (tree)



















































                                                                                                                                                               
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=kbd
pkgver=2.0.4
pkgrel=0
pkgdesc="Console keyboard and font management utilities"
url=" "
arch="all"
license="GPL-2.0+"
depends=""
makedepends="linux-headers linux-pam-dev"
checkdepends="check-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-fonts::noarch
	$pkgname-keymaps::noarch $pkgname-lang"
source="https://mirrors.kernel.org/pub/linux/utils/kbd/kbd-$pkgver.tar.xz"

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

check() {
	cd "$builddir"
	make check
}

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

fonts() {
	pkgdesc="Fonts shipped with Linux kbd tools"
	mkdir -p "$subpkgdir"/usr/share
	mv "$pkgdir"/usr/share/consolefonts "$subpkgdir"/usr/share/
}

keymaps() {
	pkgdesc="Legacy keymaps shipped with Linux kbd tools"
	mkdir -p "$subpkgdir"/usr/share
	mv "$pkgdir"/usr/share/keymaps "$subpkgdir"/usr/share/
	mv "$pkgdir"/usr/share/unimaps "$subpkgdir"/usr/share/
}

sha512sums="5e264b3695b0af0bc85e0a4fa2c43e13648d8ea82102f3b051c28da2abfc52977577c470bce48f30cec9b0d215297e48c9b05e00561c990e3770fb68f6544e0f  kbd-2.0.4.tar.xz"