# Depends on:
name=kbd
-version=2.0.1
+version=2.0.4
release=1
-source=(ftp://ftp.altlinux.org/pub/people/legion/kbd/$name-$version.tar.gz)
+source=(http://ftp.kernel.org/pub/linux/utils/$name/$name-$version.tar.xz)
build() {
cd $name-$version
- # we don't want a dependency to 'check'
- sed -i '/^SUBDIR/s/tests//' Makefile.am
- sed -i '/\[check >= 0.9.4\]/s/^/#/' configure.ac
- autoreconf --install
-
export CC="$CC" RANLIB="$RANLIB"
cat > config.cache <<EOF
./configure --build=$CHOST \
--host=$CTARGET \
--prefix=/usr \
- --mandir=/usr/man \
--datadir=/usr/share/kbd \
--disable-vlock \
--disable-nls \
rm -r $PKG/usr/share/kbd/keymaps/{ppc,mac,atari,amiga,sun}
rm $PKG/usr/bin/{loadunimap,mapscrn,psf*table}
- rm $PKG/usr/man/man8/{loadunimap,mapscrn}.8
- rm $PKG/usr/man/man1/psf*table.1
+ rm $PKG/usr/share/man/man8/{loadunimap,mapscrn}.8
+ rm $PKG/usr/share/man/man1/psf*table.1
find $PKG/usr/share/kbd/ -type f -name "README*" -delete
}