jugglinglab.SlackBuild 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #!/bin/sh
  2. # Slackware build script for Juggling Lab
  3. # Petr Kletecka admin@zonglovani.info <2014>
  4. PRGNAM=jugglinglab
  5. VERSION=${VERSION:-0.6.2}
  6. BUILD=${BUILD:-1}
  7. TAG=${TAG:-_SBo}
  8. ARCH=noarch
  9. CWD=$(pwd)
  10. TMP=${TMP:-/tmp/SBo}
  11. PKG=$TMP/package-$PRGNAM
  12. OUTPUT=${OUTPUT:-/tmp}
  13. set -e
  14. rm -rf $PKG
  15. mkdir -p $TMP $PKG $OUTPUT
  16. cd $TMP
  17. rm -rf $PRGNAM
  18. tar xvf $CWD/JugglingLab-${VERSION}_other.tar.gz
  19. mv JugglingLab $PRGNAM
  20. cd $PRGNAM
  21. chown -R root:root .
  22. find -L . \
  23. \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
  24. -o -perm 511 \) -exec chmod 755 {} \; -o \
  25. \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
  26. -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
  27. mkdir -p $PKG/usr/share/jugglinglab
  28. cp -a * $PKG/usr/share/jugglinglab
  29. mkdir -p $PKG/usr/share/applications
  30. cat $CWD/jugglinglab.desktop > $PKG/usr/share/applications/jugglinglab.desktop
  31. mkdir -p $PKG/usr/share/pixmaps
  32. cat $CWD/jugglinglab.png > $PKG/usr/share/pixmaps/jugglinglab.png
  33. mkdir -p $PKG/install
  34. cat $CWD/slack-desc > $PKG/install/slack-desc
  35. cat $CWD/doinst.sh > $PKG/install/doinst.sh
  36. cd $PKG
  37. /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}