CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
openssl: adapted to 64b
[crossrootfs.git] / kbd / Pkgfile
index 16f5fbe16e29c57a531d120c65b854bf89ed5f60..1534034af1af46295b86cdd577efd30838f2a705 100644 (file)
@@ -1,17 +1,22 @@
 # Description: Keytable files and keyboard utilities
 # URL: ftp://ftp.win.tue.nl/pub/linux-local/utils/kbd/
 # Maintainer: CRUX System Team, core-ports at crux dot nu
-# Arch Maintainer: CRUX-ARM System Team, devel@crux-arm.nu
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
 # Depends on:
 
 name=kbd
-version=1.15
-release=3
+version=2.0.3
+release=1
 source=(ftp://ftp.altlinux.org/pub/people/legion/kbd/$name-$version.tar.gz)
 
 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
@@ -23,19 +28,18 @@ EOF
   ./configure --build=$CHOST \
               --host=$CTARGET \
               --prefix=/usr \
-              --mandir=/usr/man \
               --datadir=/usr/share/kbd \
+              --disable-vlock \
               --disable-nls \
               --cache-file=config.cache
-  make
+  make -j1
   make DESTDIR=$PKG install
 
-  ln -sf default8x9.psfu.gz $PKG/usr/share/kbd/consolefonts/default.gz
+  ln -sf default8x16.psfu.gz $PKG/usr/share/kbd/consolefonts/default.gz
 
   rm -r $PKG/usr/share/kbd/keymaps/{ppc,mac,atari,amiga,sun}
-  rm $PKG/usr/bin/{psfxtable,mapscrn,loadunimap} \
-     $PKG/usr/bin/{psfaddtable,psfgettable,psfstriptable} \
-     $PKG/usr/man/man1/{psfaddtable.1,psfgettable.1,psfstriptable.1,psfxtable.1} \
-     $PKG/usr/man/man8/{loadunimap.8,resizecons.8,mapscrn.8}
-  find $PKG/usr/share/kbd/ -name "README*" -exec rm {} \;
+  rm $PKG/usr/bin/{loadunimap,mapscrn,psf*table}
+  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
 }