clawsker.SlackBuild 891 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/bin/sh
  2. # Slackware build script for Clawsker
  3. # Written by Erik Hanson erik@slackbuilds.org
  4. set -eu
  5. PRGNAM=clawsker
  6. VERSION=0.5.0
  7. ARCH=noarch
  8. BUILD=${BUILD:-1}
  9. TAG=${TAG:-_SBo}
  10. CWD=$(pwd)
  11. TMP=${TMP:-/tmp/SBo}
  12. PKG=$TMP/package-$PRGNAM
  13. OUTPUT=${OUTPUT:-/tmp}
  14. rm -rf $PKG
  15. mkdir -p $TMP $PKG $OUTPUT
  16. cd $TMP
  17. rm -rf $PRGNAM-$VERSION
  18. tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
  19. cd $PRGNAM-$VERSION
  20. chown -R root:root .
  21. chmod -R u+w,go+r-w,a-s .
  22. make
  23. make install DESTDIR=$PKG PREFIX=/usr
  24. mv $PKG/usr/share/man/ $PKG/usr/man/
  25. gzip -9 $PKG/usr/man/man?/*.?
  26. mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION $PKG/install
  27. cp -a AUTHORS COPYING ChangeLog NEWS README VERSION $PKG/usr/doc/$PRGNAM-$VERSION
  28. cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
  29. cat $CWD/slack-desc > $PKG/install/slack-desc
  30. cd $PKG
  31. /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz