PKGBUILDs/core/klibc-kbd/PKGBUILD

48 lines
1.5 KiB
Bash

# $Id: PKGBUILD 41787 2009-06-07 11:37:55Z thomas $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
pkgname=klibc-kbd
pkgver=1.15.20080312
pkgrel=10
pkgdesc="Keytable files and keyboard utilities"
arch=(arm)
url="ftp://ftp.altlinux.org/pub/people/legion/kbd/"
license=('GPL')
groups=('base')
depends=('klibc' $(basename /lib/klibc-*.so .so) 'kbd')
source=(ftp://ftp.archlinux.org/other/kbd/kbd-$pkgver.tar.gz
#ftp://ftp.altlinux.org/pub/people/legion/kbd/kbd-${pkgver}.tar.gz
no-isatty.patch
no-exit.patch
no-fflush.patch
keymap_install
keymap_hook)
md5sums=('709b087bb9d6c073bade70eda2da7770'
'53e9612ac5fc1b23601f793410742ed3'
'8c1bec330e8c98355502ac861561667d'
'8310d1a6cc72b5827898d0e9e29824ab'
'735d7268f567deee4db3bed951a8303a'
'85457e44dfd7046224e87f0add8da4b2')
build() {
cd ${srcdir}
#cd ${srcdir}/kbd-${pkgver}
patch -Np1 -i no-isatty.patch || return 1
patch -Np1 -i no-exit.patch || return 1
patch -Np1 -i no-fflush.patch || return 1
aclocal
autoconf
automake --add-missing
./configure --datadir=/share/kbd --enable-klibc
cd src/
make kbd_mode loadkeys setfont || return 1
install -D loadkeys ${pkgdir}/lib/initcpio/kbd/loadkeys
install -D kbd_mode ${pkgdir}/lib/initcpio/kbd/kbd_mode
install -D setfont ${pkgdir}/lib/initcpio/kbd/setfont
# install hook
install -Dm644 ${srcdir}/keymap_hook ${pkgdir}/lib/initcpio/hooks/keymap
install -Dm644 ${srcdir}/keymap_install ${pkgdir}/lib/initcpio/install/keymap
}