summaryrefslogtreecommitdiffstats
path: root/kbd/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'kbd/Pkgfile')
-rw-r--r--kbd/Pkgfile14
1 files changed, 8 insertions, 6 deletions
diff --git a/kbd/Pkgfile b/kbd/Pkgfile
index 6226018..d940e17 100644
--- a/kbd/Pkgfile
+++ b/kbd/Pkgfile
@@ -1,4 +1,4 @@
-description="Keytable files and keyboard utilities"
+description="Keytable files and keyboard utilities."
packager="CRUX System Team <core-ports AT crux DOT nu>"
maintainer="Lukc <lukc AT upyum DOT com>"
url="ftp://ftp.win.tue.nl/pub/linux-local/utils/kbd/"
@@ -7,11 +7,13 @@ depends=()
name=kbd
version=1.15.2
release=1
-source=(ftp://ftp.altlinux.org/pub/people/legion/kbd/kbd-1.15.2.tar.gz)
+source=(ftp://ftp.altlinux.org/pub/people/legion/$name/$name-$version.tar.gz)
build ()
{
cd $name-$version;
./configure \
+ ${CHOST:+--build=${CHOST}} \
+ ${CTARGET:+--host=${CTARGET}} \
--prefix=$prefix \
--mandir=$mandir \
--datadir=$sharedir/kbd \
@@ -19,9 +21,9 @@ build ()
make;
make DESTDIR=$PKG install;
ln -sf default8x16.psfu.gz $PKG$prefix/share/kbd/consolefonts/default.gz;
- rm -r $PKG$prefix/share/kbd/keymaps/{ppc,mac,atari,amiga,sun};
- rm $PKG$prefix/bin/{loadunimap,mapscrn,resizecons,psf*table};
- rm $PKG$mandir/man8/{loadunimap,mapscrn,resizecons}.8;
- rm $PKG$mandir/man1/psf*table.1;
+ rm -f -r $PKG$prefix/share/kbd/keymaps/{ppc,mac,atari,amiga,sun};
+ rm -f $PKG$prefix/bin/{loadunimap,mapscrn,resizecons,psf*table};
+ rm -f $PKG$mandir/man8/{loadunimap,mapscrn,resizecons}.8;
+ rm -f $PKG$mandir/man1/psf*table.1;
find $PKG$prefix/share/kbd/ -type f -name "README*" -delete
}