mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
36 lines
1,011 B
Bash
Executable file
36 lines
1,011 B
Bash
Executable file
# Maintainer: Nissar Chababy <funilrys at outlook dot com>
|
|
# Ex-Maintainer: Jeroen Bollen <jbinero at gmail dot comau>
|
|
|
|
pkgname=ckbcomp
|
|
pkgver=1.234
|
|
pkgrel=1
|
|
pkgdesc="Compile a XKB keyboard description to a keymap suitable for loadkeys or kbdcontrol"
|
|
arch=(any)
|
|
url="https://salsa.debian.org/installer-team/console-setup"
|
|
license=('GPL2')
|
|
depends=('perl')
|
|
source=("${url}/-/archive/${pkgver}/console-setup-${pkgver}.tar.gz")
|
|
sha512sums=('6417a50c843a6028609386cbf6b53952d3826503d1cc6e2b92b60b142fac6b48e7b79e1cc8bb7559315746971e969758adf68346012d70a83e566ab150497dc3')
|
|
conflicts=(ckbcomp-bin)
|
|
|
|
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/
|
|
}
|