# This script create a Slackbuild, following the standards of the# Slacky.eu community ( http:www.slacky.eu )

# Actual standard: 13.37

# Redistribution and use of this script, with or without modification, is# permitted provided that the following conditions are met:## 1. Redistributions of this script must retain the above copyright# notice, this list of conditions and the following disclaimer.## THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# Redistribution and use of this script, with or without modification, is# permitted provided that the following conditions are met:## 1. Redistributions of this script must retain the above copyright# notice, this list of conditions and the following disclaimer.## THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# Does not touch following if not neededCWD=\$(pwd)TMP=\${TMP:-/tmp/buildpkgs/\$PKGNAME}PKG=\$TMP/package-\$PKGNAMEOUTPUT=\${OUTPUT:-\$CWD}TAR=\${TAR:-\$(basename \$SOURCE)}DIR=\${DIR:-\$(echo "\$TAR"|sed -r 's/(\.tar|)(.gz|.bz2|)$//')}

_print_slackdesc(){# This script was "inspired" from the original slack-desc script# by naitso. You can find the original at this page:# http://www.slacky.eu/wikislack/index.php?title=Crea_file_slack-desc

cat > $FILE << EOF# HOW TO EDIT THIS FILE:# The "handy ruler" below makes it easier to edit a package description. Line# up the first '|' above the ':' following the base package name, and the '|' # on the right side marks the last column you can put a character in. You must# make exactly 11 lines for the formatting to be correct. It's also customary# to leave one space after the ':'.

# This script create a Slackbuild, following the standards of the# Slacky.eu community ( http://www.slacky.eu )

# Actual standard: 13.37

# Redistribution and use of this script, with or without modification, is# permitted provided that the following conditions are met:## 1. Redistributions of this script must retain the above copyright# notice, this list of conditions and the following disclaimer.## THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

WORKDIR=${WORKDIR:-$HOME}FAVEDITOR=${FAVEDITOR:-vim}# Set NO if you don't want to use Slacky.eu standard (At now only output directory tree)SLACKYSTD=${SLACKYSTD:-YES}

# Redistribution and use of this script, with or without modification, is# permitted provided that the following conditions are met:## 1. Redistributions of this script must retain the above copyright# notice, this list of conditions and the following disclaimer.## THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# Does not touch following if not neededCWD=\$(pwd)TMP=\${TMP:-/tmp/buildpkgs/\$PKGNAME}PKG=\$TMP/package-\$PKGNAMEOUTPUT=\${OUTPUT:-\$CWD}TAR=\${TAR:-\$(basename \$SOURCE)}DIR=\${DIR:-\$(echo "\$TAR"|sed -r 's/(\.tar|)(.gz|.bz2|)$//')}

_print_slackdesc(){# This script was "inspired" from the original slack-desc script# by naitso. You can find the original at this page:# http://www.slacky.eu/wikislack/index.php?title=Crea_file_slack-desc

cat > $EXPDIR/slack-desc << EOF# HOW TO EDIT THIS FILE:# The "handy ruler" below makes it easier to edit a package description. Line# up the first '|' above the ':' following the base package name, and the '|' # on the right side marks the last column you can put a character in. You must# make exactly 11 lines for the formatting to be correct. It's also customary# to leave one space after the ':'.