aboutsummaryrefslogtreecommitdiff
path: root/libraries/xerces-c/xerces-c.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/xerces-c/xerces-c.SlackBuild')
-rw-r--r--libraries/xerces-c/xerces-c.SlackBuild53
1 files changed, 46 insertions, 7 deletions
diff --git a/libraries/xerces-c/xerces-c.SlackBuild b/libraries/xerces-c/xerces-c.SlackBuild
index 50de58dc0089c..4c0ca20507865 100644
--- a/libraries/xerces-c/xerces-c.SlackBuild
+++ b/libraries/xerces-c/xerces-c.SlackBuild
@@ -2,14 +2,54 @@
# Slackware build script for xerces-c
-# Copyright 2012 Robert Allen <slacker@slaphappygeeks.com>
+# 2015 Robert Allen <slacker@slaphappygeeks.com>
# All rights reserved
# Including Creator Endowed Unalienable Rights
#
-# This script is placed into the public domain by the author
+################################################################
+# Statement of Origin and Principle:
+# This script was adapted from SBo templates
+# by Robert Allen, Sun Jul 12 12:05:09 MDT 2015
+#
+# I respectfully request that you leave this statement of origin
+# and the following acknowledgment of right to use, modify and
+# distribute, intact in your own versions and those you may pass
+# to others. I encourage you to use this statement of origin for
+# your own work instead of a copy/paste license or copyright
+# which you neither understand nor could enforce on others.
+################################################################
+# Acknowledgment of right to use, copy, modify and distribute:
+#
+# You already have the right to use, modify and distribute this
+# or any other thought or idea, and need no license or other
+# permission from anyone to do so!
+#
+# Exercise it freely and never concede it to anyone!
+#
+# To be first to think or publish an idea is only to be first
+# to demonstrate that it is a human possibility, and to provide
+# a single step in the path of human progress to help ourselves
+# and all others along our shared journey into the future.
+#
+# To claim ownership of an idea, a shared human possibility, by
+# contrived legal devices is an act of greed and arrogance that
+# attempts to rob every other human being of the same right to
+# think and benefit from that same shared human possibility.
+#
+# Acknowledge and respect the work of others. Enjoy the respect
+# earned by your own good works, and encourage and applaud those
+# who would build on it!
+#
+# Free your mind, and those around you!
+#
+# Abolish the pernicious impediment to human progress known as
+# intellectual property law which obstructs all our future paths
+# only for the immediate gain of a few.
+#
+################################################################
PRGNAM=xerces-c
-VERSION=3.1.1
+VERSION=${VERSION:-3.1.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,7 +100,7 @@ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -94,12 +134,11 @@ if [ "$WITHDOCS" = "1" ]; then
cp -rf doc/html/* $PKG/usr/share/$PRGNAM-$VERSION/manual/.
fi
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a CREDITS README KEYS LICENSE NOTICE \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a CREDITS README KEYS LICENSE NOTICE $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install