From 26461cccbd72db5ea4d2fde3438cfdb354ed21e9 Mon Sep 17 00:00:00 2001 From: rhatto Date: Thu, 30 Apr 2009 20:21:54 +0000 Subject: qt4: adding mkbuild ; adding tracwikiprint and dependencies git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@2178 370017ae-e619-0410-ac65-c121f96126d4 --- www/apps/tracwikiprint/Manifest | 23 ++++ www/apps/tracwikiprint/TracWikiPrint.SlackBuild | 160 ++++++++++++++++++++++++ www/apps/tracwikiprint/slack-required | 5 + 3 files changed, 188 insertions(+) create mode 100644 www/apps/tracwikiprint/Manifest create mode 100644 www/apps/tracwikiprint/TracWikiPrint.SlackBuild create mode 100644 www/apps/tracwikiprint/slack-required (limited to 'www') diff --git a/www/apps/tracwikiprint/Manifest b/www/apps/tracwikiprint/Manifest new file mode 100644 index 00000000..2132284a --- /dev/null +++ b/www/apps/tracwikiprint/Manifest @@ -0,0 +1,23 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MKBUILD TracWikiPrint.mkbuild 2751 MD5 0edbbc3eff976509cc8051b115be1505 RMD160 f46081b9a881cbf56d6f00fa21b1d8646c5f31ef SHA1 c01b7f4b102d071e7441eb826033b63779bb83ec SHA256 6cc8d5e1db458fdf7ce3c69b4ca86c7760f5485d6b8f320d827802234c754952 SHA512 704a7e18067b1a73f3d4f24f43f563915249a4dd154d5af2dd74deaf981046074d68b0bc62ff506fb48e7cd9dea76223b302fd558d5927bba6022a00c986c747 +SLACK-REQUIRED slack-required 91 MD5 9d944aa1dbca6b807a154707efb48748 RMD160 93fe8eab397a78e438603fba9b5c20a20b7f3f76 SHA1 f840fec0df64cdebbbb141beb9cf847a14d98436 SHA256 c3ea7c263cba1fdd3709c6d4df48444659025ff625f2b6baa28357cdfbb65eca SHA512 c9f1367b4ea43dc493db10fe0baaef847ff3df1351d1a1af6c4bbdcf3eca67622a047bc9534300230a863a329fd712e56e34d5b452bf31f13ce2da3293a26877 +SLACKBUILD TracWikiPrint.SlackBuild 5095 MD5 aea4a6388f32b256ed0032a3a2583bb4 RMD160 cb29a667b20fad5a4b139b95497dbad7e751dcd5 SHA1 3ac0d1755d1e3bf13b07665252c8138d8ac23af1 SHA256 2080eba12ec2c6560070546a362ba38c84e389c56fc948c9e9ce9a18725ea6fa SHA512 2564e3028b7e3bb00caa5f17778158145ac75029293000ac26ede7afd1b482bc424787150ac400fee6b4d2859860e76fec1b0e96fc8cff3b8d41401aef831486 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.9 (GNU/Linux) + +iQIcBAEBAgAGBQJJ+fu+AAoJEEHL93ESzgeiGKAP/1boR9nK3W3TjjmN3frSEqgd +WRnkN+L+zml4MkAJwNL36ZpMHTvsITl3bOCqRQWwuhrnm+kkLVLTwTTcxQxbrL05 +E5cRL8rtxGvsAd7p4zzsGTtdAOhpS+ijGREsJ6lMdJ7SwyOkn9d7Du/6TtvNUU7y +hpHujM08/9VdReblFwum6wokEID29+4L7O5+fv9JHXbXcKNSJt5fQzfVcPz4OdKp +9ho8dmdDoW7faWMVQKzGpW8LH2KT19KsbPuO3WJ+jBVgmJyqFF1bVWxFZ4rnAZtj +w7vjh2AT5fUWZg2HhJk+F5E1XkBaXgkC9Of5Jrt9rxi5/AiJfp75hgHG1MPPwy0d +w8SzECgt07YkxlZa4inWTmrwHYdXZvcEuJoZwhhJP3q1j/OW+kx8IXSC4sTYeaQw +FVM8ZPa0AUdj53kInZiNdptJPU/1vuJD27nChVKO1CuitbhdahdS7w3sW2bVn8pa +EqzQ4YVWQ+AI+K73WPy7FYB8ZVSsMzKd3I3Uk4Sbg44s7Qksum1sUnziVSihyPmr +R+t/aKSMrGIns0Mru721RoP9GFYBN1hjVylJEe8FjKUR3sRoJ33z79w0gEs9TpC8 +zZWX6lDevxi0oUdBAj6jGeXAx/lguiLKVx8fDbXgZLp9UWoEJWPKWzkh0zDc7Yu/ +L9VTTmbYnBorZ7QhRPHp +=7ZUx +-----END PGP SIGNATURE----- diff --git a/www/apps/tracwikiprint/TracWikiPrint.SlackBuild b/www/apps/tracwikiprint/TracWikiPrint.SlackBuild new file mode 100644 index 00000000..dfa574cd --- /dev/null +++ b/www/apps/tracwikiprint/TracWikiPrint.SlackBuild @@ -0,0 +1,160 @@ +#!/bin/bash +# +# TracWikiPrint.SlackBuild is free software; you can redistribute +# it and/or modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of the License, +# or any later version. +# +# TracWikiPrint.SlackBuild is distributed in the hope that it will +# be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General +# Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA +# +# slackbuild for TracWikiPrint, by Silvio Rhatto +# requires: pisa +# tested: TracWikiPrint-svn_version +# model: generic.mkSlackBuild $Rev: 805 $ +# + +# Look for slackbuildrc +if [ -f ~/.slackbuildrc ]; then + source ~/.slackbuildrc +elif [ -f /etc/slackbuildrc ]; then + source /etc/slackbuildrc +fi + +# Set variables +CWD="$(pwd)" +SRC_NAME="TracWikiPrint" +PKG_NAME="TracWikiPrint" +ARCH=${ARCH:=i486} +SRC_VERSION=${VERSION:=svn_version} +PKG_VERSION="$(echo "$SRC_VERSION" | tr '[[:blank:]-]' '_')" +BUILD=${BUILD:=1rha} +SRC_DIR=${SRC_DIR:=$CWD}/$PKG_NAME +TMP=${TMP:=/tmp} +PKG=${PKG:=$TMP/package-$PKG_NAME} +REPOS=${REPOS:=$TMP} +SLACKBUILD_PATH=${SLACKBUILD_PATH:="www/apps/tracwikiprint"} +PREFIX=${PREFIX:=/usr} +PKG_WORK="$TMP/$SRC_NAME" +CONF_OPTIONS=${CONF_OPTIONS:=""} +NUMJOBS=${NUMJOBS:=""} + +# Set system libraries' path and optmization flags based on $ARCH +LIBDIR="$PREFIX/lib" + +if [ "$ARCH" = "i386" ]; then + SLKCFLAGS="-O2 -march=i386 -mtune=i686" +elif [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686" +elif [ "$ARCH" = "s390" ]; then + SLKCFLAGS="-O2" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIR="$PREFIX/lib64" + LDFLAGS="-L/lib64 -L/usr/lib64" +fi + +# Set error codes (used by createpkg) +ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33 +ERROR_MD5=34; ERROR_CONF=35; ERROR_HELP=36 +ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39 +ERROR_PATCH=40; ERROR_VCS=41; ERROR_MKDIR=42 +ERROR_MANIFEST=43; + +# Clean up any leftovers of previous builds +rm -rf "$PKG_WORK" 2> /dev/null +rm -rf "$PKG" 2> /dev/null + +# Create directories if necessary +mkdir -p "$SRC_DIR" || exit $ERROR_MKDIR +mkdir -p "$PKG" || exit $ERROR_MKDIR +mkdir -p "$REPOS" || exit $ERROR_MKDIR +mkdir -p "$PKG_WORK" || exit $ERROR_MKDIR + +# Get svn source code +cd "$SRC_DIR" +SND_DIR="`basename http://trac-hacks.org/svn/tracwikiprintplugin/0.11`" + +if [ "`find "$SRC_DIR/" -name .svn`" != "" ] && [ -d "$SRC_DIR/$SND_DIR" ]; then + cd $SND_DIR + svn update || exit $ERROR_VCS +else + svn checkout http://trac-hacks.org/svn/tracwikiprintplugin/0.11 $SND_DIR || exit $ERROR_VCS + cd $SND_DIR +fi + +PKG_VERSION="`svn info | awk '/Last Changed Rev:/ { print $4 }'`_svn" + +# Copy svn source +cd "$PKG_WORK" +cp -a $SRC_DIR/* . +PKG_SRC="$PWD/$SND_DIR" +cd "$PKG_SRC" + +# Build and install package +python setup.py build install --root=$PKG + +# Strip binaries +( cd "$PKG" + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null +) + +# Install documentation +DOCS="NEWS TODO README AUTHORS INSTALL ChangeLog MAINTAINERS COPYING LICENSE SIGNATURE readme.*" +mkdir -p "$PKG/usr/doc/$PKG_NAME-$PKG_VERSION" || exit $ERROR_MKDIR +for doc in $DOCS; do + if [ -f "$doc" ]; then + cp -a $doc "$PKG/usr/doc/$PKG_NAME-$PKG_VERSION" + fi +done + +# Add package description (slack-desc) +mkdir -p "$PKG/install" || exit $ERROR_MKDIR +cat << EODESC > "$PKG/install/slack-desc" +# 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 ':'. + + |-----handy-ruler------------------------------------------------| +TracWikiPrint: TracWikiPrint +TracWikiPrint: +TracWikiPrint: Make wiki pages easily printable, exporting to PDF +TracWikiPrint: (book or article format) or printable HTML format +TracWikiPrint: (page contents without trac headers/footers). +TracWikiPrint: +TracWikiPrint: +TracWikiPrint: +TracWikiPrint: +TracWikiPrint: +TracWikiPrint: +EODESC + +# Copy slack-required +mkdir -p "$PKG/install" || exit $ERROR_MKDIR +if [ -f "$CWD/slack-required" ]; then + cp $CWD/slack-required $PKG/install +fi + +# Build the package +cd "$PKG" +mkdir -p $REPOS/$SLACKBUILD_PATH +makepkg -l y -c n "$REPOS/$SLACKBUILD_PATH/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERROR_MKPKG + +# Delete source and build directories if requested +if [ "$CLEANUP" == "yes" ] || [ "$1" = "--cleanup" ]; then + rm -rf "$PKG_WORK" "$PKG" +fi diff --git a/www/apps/tracwikiprint/slack-required b/www/apps/tracwikiprint/slack-required new file mode 100644 index 00000000..4bb169e0 --- /dev/null +++ b/www/apps/tracwikiprint/slack-required @@ -0,0 +1,5 @@ +# Dependency list to TracWikiPrint +# +# dependency [condition] [version]] +Trac +pisa -- cgit v1.2.3