diff options
Diffstat (limited to 'development/yaml/yaml.SlackBuild')
-rw-r--r-- | development/yaml/yaml.SlackBuild | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/development/yaml/yaml.SlackBuild b/development/yaml/yaml.SlackBuild index 84639435c6..cd9d50e0aa 100644 --- a/development/yaml/yaml.SlackBuild +++ b/development/yaml/yaml.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for yaml -# Copyright 2008 Heinz Wiesinger <hmwiesinger@gmx.at> +# Copyright 2008-2009 Heinz Wiesinger <pprkut@liwjatan.at> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,10 +22,9 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -PRGNAM=YAML -PKGNAM=yaml -VERSION=0.66 -ARCH=${ARCH:-i486} +PRGNAM=yaml +VERSION=0.68 +ARCH=${ARCH:-noarch} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -34,21 +33,21 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +SRCNAM=$(echo $PRGNAM | tr [:lower:] [:upper:]) + set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . echo "y" | perl Makefile.PL INSTALLDIRS=vendor - make - make install DESTDIR=$PKG #Move man-pages to appropriate place @@ -68,13 +67,13 @@ find $PKG -depth -type d -empty -exec rm -rf {} \; for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done ) -mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION -cp -a Changes COMPATIBILITY README \ - $PKG/usr/doc/$PKGNAM-$VERSION -cat $CWD/$PKGNAM.SlackBuild > $PKG/usr/doc/$PKGNAM-$VERSION/$PKGNAM.SlackBuild +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a Changes MANIFEST README \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PKGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |