aboutsummaryrefslogtreecommitdiff
path: root/libraries/stfl
diff options
context:
space:
mode:
authorBenjamin Trigona-Harany <bosth@alumni.sfu.ca>2012-09-10 21:27:46 -0500
committerRobby Workman <rworkman@slackbuilds.org>2012-09-10 22:02:31 -0500
commit1bf54982d335e9a261acfa1dd2b0ba391488f33c (patch)
treebf5618d6b1fa6d5a51afacb6cdcff8c9412912da /libraries/stfl
parent8033ce09f04b4d1f27eca5c9d96753df34ad9a1a (diff)
libraries/stfl: Fix installing of examples.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org> Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/stfl')
-rw-r--r--libraries/stfl/stfl.SlackBuild13
-rw-r--r--libraries/stfl/stfl.info2
2 files changed, 12 insertions, 3 deletions
diff --git a/libraries/stfl/stfl.SlackBuild b/libraries/stfl/stfl.SlackBuild
index f2100131eb59b..0cda67b558072 100644
--- a/libraries/stfl/stfl.SlackBuild
+++ b/libraries/stfl/stfl.SlackBuild
@@ -7,7 +7,7 @@
PRGNAM=stfl
VERSION=${VERSION:-0.22}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -68,10 +68,19 @@ find $PKG -depth -type d -empty -delete || true
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+# make installs an example for perl in the lib path
+rm $PKG/usr/lib${LIBDIRSUFFIX}/perl5/vendor_perl/example.pl
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a COPYING README example.c $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+# install all examples into the doc directory
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/examples
+cp -a \
+ example.{c,stfl} perl5/example.pl python/example.* ruby/example.rb spl/*.spl \
+ $PKG/usr/doc/$PRGNAM-$VERSION/examples
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/libraries/stfl/stfl.info b/libraries/stfl/stfl.info
index 52075a0ef7013..ff75cabdcf9aa 100644
--- a/libraries/stfl/stfl.info
+++ b/libraries/stfl/stfl.info
@@ -2,9 +2,9 @@ PRGNAM="stfl"
VERSION="0.22"
HOMEPAGE="http://www.clifford.at/stfl/"
DOWNLOAD="http://www.clifford.at/stfl/stfl-0.22.tar.gz"
+MD5SUM="df4998f69fed15fabd702a25777f74ab"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-MD5SUM="df4998f69fed15fabd702a25777f74ab"
REQUIRES=""
MAINTAINER="Benjamin Trigona-Harany"
EMAIL="bosth@alumni.sfu.ca"