summaryrefslogtreecommitdiff
path: root/system/kbd/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'system/kbd/APKBUILD')
-rw-r--r--system/kbd/APKBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/system/kbd/APKBUILD b/system/kbd/APKBUILD
new file mode 100644
index 000000000..38a367e10
--- /dev/null
+++ b/system/kbd/APKBUILD
@@ -0,0 +1,52 @@
+# 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"