35 lines
954 B
Bash
35 lines
954 B
Bash
# Maintainer: Nissar Chababy <funilrys at outlook dot com>
|
|
# Ex-Maintainer: Jeroen Bollen <jbinero at gmail dot comau>
|
|
|
|
pkgname=ckbcomp
|
|
pkgver=1.207
|
|
pkgrel=1
|
|
pkgdesc="Compile a XKB keyboard description to a keymap suitable for loadkeys or kbdcontrol"
|
|
arch=(any)
|
|
url="http://anonscm.debian.org/cgit/d-i/console-setup.git/"
|
|
license=('GPL2')
|
|
depends=('perl')
|
|
source=("http://ftp.de.debian.org/debian/pool/main/c/console-setup/console-setup_${pkgver}.tar.xz")
|
|
sha256sums=('5c9ff5d48d5fd57d3bc874de8f508ccc7b7df21fd64f651db5a83bda0c91c5e9')
|
|
|
|
package() {
|
|
if [[ -d "${srcdir}/console-setup" ]]
|
|
then
|
|
cd console-setup
|
|
elif [[ -d "${srcdir}/console-setup-${pkgver}" ]]
|
|
then
|
|
cd console-setup-${pkgver}
|
|
else
|
|
echo "Source directory not found.".
|
|
exit 1
|
|
fi
|
|
|
|
|
|
if [[ ${?} != 0 ]]
|
|
then
|
|
cd console-setup-${pkgver}
|
|
fi
|
|
|
|
install -d ${pkgdir}/usr/bin/
|
|
install -m755 Keyboard/ckbcomp ${pkgdir}/usr/bin/
|
|
}
|