diff options
Diffstat (limited to 'system/atarisio/atarisio.SlackBuild')
-rw-r--r-- | system/atarisio/atarisio.SlackBuild | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/system/atarisio/atarisio.SlackBuild b/system/atarisio/atarisio.SlackBuild index 9d96a861c6..63e3d11b75 100644 --- a/system/atarisio/atarisio.SlackBuild +++ b/system/atarisio/atarisio.SlackBuild @@ -3,10 +3,9 @@ # Slackware build script for atarisio # Written by B. Watson (yalhcru@gmail.com) -# Modified by the SlackBuilds.org project. PRGNAM=atarisio -VERSION=20080714 +VERSION=20100113 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -20,11 +19,12 @@ KERNEL=${KERNEL:-$(uname -r)} KERNELPATH=${KERNELPATH:-/lib/modules/$KERNEL/build} PKG_VERS=${VERSION}_$(echo $KERNEL | tr - _) -SRCVER=${SRCVER:-080714} +SRCVER=$( echo $VERSION | sed 's/^..//' ) SETUID=${SETUID:-yes} GROUP=${GROUP:-users} +# No need for LIBDIRSUFFIX here, no /usr/lib dir in package. if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "i686" ]; then @@ -51,7 +51,7 @@ mkdir -p $PKG/usr/{include,bin} $PKG/lib/modules/$KERNEL/misc make install INST_DIR=$PKG/usr MDIR=$PKG/lib/modules/$KERNEL/misc # Hias forgot to add a couple of useful tools to his "make install" rule: -cp tools/{ataricom,atpdump,atr2atp,casinfo} $PKG/usr/bin +cp tools/casinfo $PKG/usr/bin strip $PKG/usr/bin/* chown -R root:root $PKG/usr/bin @@ -64,16 +64,17 @@ else fi -# Doing it this way allows this script to work on 12.0 and 12.1 also. -mkdir -p $PKG/etc/udev/rules.d -sed 's/@GROUP@/'$GROUP'/g' < $CWD/999-$PRGNAM.rules.in > $PKG/etc/udev/rules.d/999-$PRGNAM.rules +mkdir -p $PKG/lib/udev/rules.d +sed 's/@GROUP@/'$GROUP'/g' \ + < $CWD/999-$PRGNAM.rules.in \ + > $PKG/lib/udev/rules.d/999-$PRGNAM.rules mkdir -p $PKG/usr/man/man1 -( cd $CWD/man +cd $CWD/man for i in *.1; do gzip -9c $i > $PKG/usr/man/man1/$i.gz done -) +cd - mkdir -p $PKG/usr/doc/$PRGNAM-$PKG_VERS cp $CWD/README.Slackware README LICENSE Changelog $PKG/usr/doc/$PRGNAM-$PKG_VERS @@ -84,4 +85,4 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKG_VERS-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKG_VERS-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |