From 19689f4b86397bf7ee377632c57746043a6ac8c4 Mon Sep 17 00:00:00 2001 From: Ray-V Date: Sat, 30 Apr 2016 14:36:49 +0100 Subject: [PATCH] added README, libksquirrel SB, and en-docs --- Apps/ksquirrel/README | 5 + .../ksquirrel-R14.0.3-en-docs.tar.xz | Bin 0 -> 9804 bytes .../ksquirrel/libksquirrel-R14.0.3.SlackBuild | 224 ++++++++++++++++++ 3 files changed, 229 insertions(+) create mode 100644 Apps/ksquirrel/README create mode 100644 Apps/ksquirrel/ksquirrel-R14.0.3-en-docs.tar.xz create mode 100644 Apps/ksquirrel/libksquirrel-R14.0.3.SlackBuild diff --git a/Apps/ksquirrel/README b/Apps/ksquirrel/README new file mode 100644 index 0000000..77b4108 --- /dev/null +++ b/Apps/ksquirrel/README @@ -0,0 +1,5 @@ +If ksquirrel is to be built with exif and Kipi Plugins support, build and install kipi-plugins first. + +Needs libksquirrel. + +The default build is for [US] English only - additional language support can be set by the 'lang' variable. diff --git a/Apps/ksquirrel/ksquirrel-R14.0.3-en-docs.tar.xz b/Apps/ksquirrel/ksquirrel-R14.0.3-en-docs.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..8ec2b12f77696919df2aa3d07568f30a2e301833 GIT binary patch literal 9804 zcmV-SCbQZ7H+ooF000E$*0e?f03iVu0001VFXf}*xBn&#T>vs0$cb6SQGMs1W~ZI4 z4k=i^eS{TNPB-DE<-S5BOc*j_f#7BJvF|zPYKFKo>7cJ>&6Kdad~)$z^fF>o(e91s z1v&(ngIkse&5>wutMvJ=JGO#D-P(tZXDgP$AV@%A5fcVg3zg|7oDL_bX%VR38SQ9B z-lATDF`%NaIr3=AO=kffEo9S7Npd346K>~_;O0T>#fPZCtrRxKNJRSu$jO$Y4*)%~ z*#uI9x@tZ8%bmuq+y;NzdK@k{r;V2m0=bY$ zs7*}ArH1$$4Y6I`%TpgdOHk*4c}0oh^k#Ds`vufhJe8$iyHPdi_@VVIH_au;0OFr9 zDM`7h-otRxL|Vu^SH69{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I#Z<@W( zuT&0dIGj3A0QyOdcdrG{waD_&p)LoYlBK~6ly(`0p@!uKk0b)S^EUCImowDk@&!`^ zO$wW*h|KvD|Lt22^Q)zv2t@$o{Imi9eNp**6VG!v5X{5)L53ytYGO0buXoD1p(zz8 z(hmY^|CpHSUOdCo{I)lzoaW&9>5_yMT=2HaKg2r*y{+FcD>Db^#mu8k6;gT!U81yBC$bbqg0t6sVkRdri$Zys z&V67+2nxP+FNLn_lYGLIOMjO)MKxm`Joh zcYsy@DW{W(F*E;cemGfJ*r+U%oqcNRr~*CG1tT9wj8^58C70hM=8kwmwO>Cbd7E#k zXRNs|i{X=Mb!6&vLCo(AzGlWL#KYLyh1w(|#$jLTk-C0Kz8&K|Kg^Iek;?Me2KHO# zd_GLWBnJ2JK8&yc$bpRm%~j`(XRi54ZYZp?=@urTe$PwK3^_vn#y0M>#KZ44Y(P}M zf)}H_(I?-!oy-LGn`3HQ>P?27Zcx*l`ZX(e$Mto=-Y4CH$l&n)lV-Bi^+w&LVDUCv<1UCtzK95)(N3!>ietl z@N~_+p&RcYySlxIQ67(aT7D9)abo)CWZSc zIf!TQL82vI>ct)X6(6-9z5wH`wcVD6MOy8QA*+)SR)E!$TeZX+_kq-S5v^dZixTaL z*-%bNRH&oZXSR9P#^0;gkPcD}ne1&c;F-|*%^$!VM!PemDQW-tPTUO)Ec)nOm_FtW mrvLyKlyF^d(%$g^0jNxX@CE>Tklv-S#Ao{g000001X)@Yl?R9b literal 0 HcmV?d00001 diff --git a/Apps/ksquirrel/libksquirrel-R14.0.3.SlackBuild b/Apps/ksquirrel/libksquirrel-R14.0.3.SlackBuild new file mode 100644 index 0000000..66c21a8 --- /dev/null +++ b/Apps/ksquirrel/libksquirrel-R14.0.3.SlackBuild @@ -0,0 +1,224 @@ +#!/bin/sh +# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST +# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands +# Copyright 2015-2016 Thorn Inurcide thorninurcide@gmail.com +# All rights reserved. +# +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS 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. + +PRGNAM=libksquirrel +VERSION=${VERSION:-R14.0.3} +BUILD=${BUILD:-1} +TAG=${TAG:-_tde} +PREFIX=/usr + + +Options() +{ +## Edit or comment out as required +# Set the number of parallel jobs [-jn] to whatever your system will support +NUMJOBS=${NUMJOBS:--j} +# let configure find the tqt3 directories +#QTDIR="" +return +} + + +SlackDesc() +{ +echo " +# 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------------------------------------------------------| +libksquirrel: ksquirrel-libs is a set of image codecs, +libksquirrel: containing regular libraries for KSquirrel. +libksquirrel: +libksquirrel: +libksquirrel: +libksquirrel: +libksquirrel: +libksquirrel: +libksquirrel: +libksquirrel: +libksquirrel: +" > $PKG/install/slack-desc +} + + +# Where do we look for sources? +SRCDIR=$(cd $(dirname $0); pwd) + +TMP=${TMP:-/tmp/build} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" +SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/applications/${PRGNAM}-${VERSION}.tar.bz2" + +# You can use your own private machine.conf file to overrule machine defaults: +if [ -e $SRCDIR/machine.conf ]; then + . $SRCDIR/machine.conf +elif [ -e /etc/slackbuild/machine.conf ]; then + . /etc/slackbuild/machine.conf +else + # Automatically determine the architecture we're building on: + MARCH=$( uname -m ) + if [ -z "$ARCH" ]; then + case "$MARCH" in + i?86) export ARCH=i486 ;; + armv7hl) export ARCH=$MARCH ;; + armv6hl) export ARCH=$MARCH ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$MARCH ;; + esac + fi + # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: + case "$ARCH" in + i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" + SLKLDFLAGS=""; LIBDIRSUFFIX="" + ;; + x86_64) SLKCFLAGS="-O2 -fPIC" + SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" + ;; + armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" + SLKLDFLAGS=""; LIBDIRSUFFIX="" + ;; + armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" + SLKLDFLAGS=""; LIBDIRSUFFIX="" + ;; + *) SLKCFLAGS=${SLKCFLAGS:-"O2"} + SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} + ;; + esac +fi + +case "$ARCH" in + arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; + *) TARGET=$ARCH-slackware-linux ;; +esac + +# Exit the script on errors: +set -e +trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR +# Catch unitialized variables: +set -u +P1=${1:-1} + +# Save old umask and set to 0022: +_UMASK_=$(umask) +umask 0022 + +# Create working directories: +mkdir -p $OUTPUT +mkdir -p $TMP/tmp-$PRGNAM +mkdir -p $PKG +rm -rf $PKG/* +rm -rf $TMP/tmp-$PRGNAM/* +rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log + +# Source file availability: +if ! [ -f ${SOURCE} ]; then + echo "Source '$(basename ${SOURCE})' not available yet..." + # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT + [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" + if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi + if ! [ "x${SRCURL}" == "x" ]; then + echo "Will download file to $(dirname $SOURCE)" + wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true + if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then + echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." + mv -f "${SOURCE}" "${SOURCE}".FAIL + exit 1 + fi + else + echo "File '$(basename ${SOURCE})' not available... aborting the build." + exit 1 + fi +fi + +if [ "$P1" == "--download" ]; then + echo "Download complete." + exit 0 +fi + +cd $TMP/tmp-$PRGNAM +tar -xvf ${SOURCE} + +cd libraries +cd ${PRGNAM} + +# list only files > zero bytes +DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* LICEN?E* NEWS* *README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true +Options + +# update admin for installed version of libtool +cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ +cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in + +make -f admin/Makefile.common + +chown -R root:root . +chmod -R u+w,go+r-w,a+rX-st . + + +# Configure the package +LDFLAGS="${SLKLDFLAGS}" +CFLAGS="${SLKCFLAGS}" +CXXFLAGS="${SLKCFLAGS}" +./configure \ + --prefix=${PREFIX} \ + --sysconfdir="/etc/trinity" \ + --mandir=${PREFIX}/man \ + --disable-rpath \ + --enable-closure + + + make ${NUMJOBS:-} || exit 1 + make DESTDIR=$PKG install || exit 1 +cd - + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +(cd ${PRGNAM};cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION) || true +cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION +find $PKG/usr/doc -type f -exec chmod 644 {} \; + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/install +SlackDesc + + +cd $PKG +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} +cd $OUTPUT +md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 +cd - +cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt + +# Restore the original umask: +umask ${_UMASK_} +