CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
binutils: updated to 2.27
[crossrootfs.git] / kbd / Pkgfile
index 96aca2c3d90b08f09fa19aa8d866a14cc8515960..1534034af1af46295b86cdd577efd30838f2a705 100644 (file)
@@ -5,13 +5,18 @@
 # Depends on:
 
 name=kbd
-version=1.15.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 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
 }