summaryrefslogblamecommitdiff
path: root/system/console-setup/APKBUILD
blob: b1e1b4c7624ebe6a222805632369e1807520e505 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                  
            
        
                                                                          

                                                           
                                  
                                           
                     
                  
                                                                     
                                


                                                                                      
                           

         


                        
           















                                                                                         






                                                          
                                                                                                                                                                        
                                                                                                                                                      
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=console-setup
pkgver=1.195
pkgrel=0
pkgdesc="Tools for configuring the console using X Window System key maps"
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="ckbcomp kbd"
makedepends="perl"
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
	"
builddir="$srcdir/$pkgname"

build() {
	make build-linux
}

package() {
	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="f9ee8df45cfb78dea12b1ba3020e32f245dd940bc1d22801849f673f4448853c0ebadb6944a92b462e3e56c59ee13fd6d2130c260a1a406e1bb1c72e9902c04d  console-setup_1.195.tar.xz
3b8e2c9d8551f9a51bcd33e58771a4f55ff2840f8fe392e0070bd2b6a3911cd9ed9377873538f6904fd99836ac4e0280c712be69d275aae9183dd12ff7efddae  console-setup.initd"