Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Mine
Saturday, January 21st, 2012 at 10:59:53pm UTC 

  1. #!/bin/sh
  2.  
  3. # Slackware build script for openra
  4.  
  5. # Written by Z. Brooks ([email protected])
  6.  
  7. PRGNAM=openra
  8. VERSION=${VERSION:-20111013}
  9. ARCH=noarch
  10. BUILD=${BUILD:-1}
  11. TAG=${TAG:-_SBo}
  12.  
  13. CWD=$(pwd)
  14. TMP=${TMP:-/tmp/SBo}
  15. PKG=$TMP/package-$PRGNAM
  16. OUTPUT=${OUTPUT:-/tmp}
  17.  
  18. set -e
  19.  
  20. rm -rf $PKG
  21. mkdir -p $TMP $PKG $OUTPUT
  22. cd $TMP
  23. rm -rf $PRGNAM-$VERSION
  24. mkdir $TMP/$PRGNAME-$VERSION
  25. cd $TMP/$PRGNAME-$VERSION
  26. tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
  27. chown -R root:root .
  28. find . \
  29.  \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
  30.  -exec chmod 755 {} \; -o \
  31.  \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
  32.  -exec chmod 644 {} \;
  33.  
  34. mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
  35. cp -a \
  36.   <documentation> \
  37.   $PKG/usr/doc/$PRGNAM-$VERSION
  38. cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
  39.  
  40. mkdir -p $PKG/install
  41. cat $CWD/slack-desc > $PKG/install/slack-desc
  42. cat $CWD/doinst.sh > $PKG/install/doinst.sh
  43.  
  44. cd $PKG
  45. /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right