mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
libraries/xlt: Added to 12.1 repository
This commit is contained in:
parent
b51093bce4
commit
04c4c5e45b
5 changed files with 100 additions and 0 deletions
8
libraries/xlt/README
Normal file
8
libraries/xlt/README
Normal file
|
@ -0,0 +1,8 @@
|
|||
xlt ( libXlt library)
|
||||
====================
|
||||
|
||||
The Xlt widget set is a group of larger and smaller utility
|
||||
widgets, authored by Rick Scott unless stated otherwise.
|
||||
In addition the Xlt library also suppplied a couple of
|
||||
convenience functions (and macros) to help with certain
|
||||
tasks while programming with the Motif API.
|
3
libraries/xlt/doinst.sh
Normal file
3
libraries/xlt/doinst.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
ldconfig
|
9
libraries/xlt/slack-desc
Normal file
9
libraries/xlt/slack-desc
Normal file
|
@ -0,0 +1,9 @@
|
|||
xlt: xlt ( the libXlt library)
|
||||
xlt:
|
||||
xlt: The Xlt widget set is a group of larger and smaller utility
|
||||
xlt: widgets, authored by Rick Scott unless stated otherwise. In
|
||||
xlt: addition the Xlt library also suppplied a couple of
|
||||
xlt: convenience functions (and macros) to help with certain
|
||||
xlt: tasks while programming with the Motif API.
|
||||
xlt:
|
||||
xlt:
|
72
libraries/xlt/xlt.SlackBuild
Normal file
72
libraries/xlt/xlt.SlackBuild
Normal file
|
@ -0,0 +1,72 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for xlt
|
||||
|
||||
# Written by Vincent Batts, vbatts@batts.mine.nu
|
||||
# Modified by SlackBuilds.org
|
||||
|
||||
set -e
|
||||
|
||||
PRGNAM=xlt
|
||||
BIG_PRGNAM=Xlt
|
||||
VERSION=11.1.11
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
fi
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $BIG_PRGNAM-$VERSION
|
||||
tar xzvf $CWD/$BIG_PRGNAM-$VERSION.tar.gz || exit 1
|
||||
cd $BIG_PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \; || exit 1
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man || exit 1
|
||||
|
||||
make || exit 1
|
||||
make install DESTDIR=$PKG || exit 1
|
||||
|
||||
( 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
|
||||
)
|
||||
|
||||
( cd $PKG/usr/man
|
||||
find . -type f -exec gzip -9 {} \;
|
||||
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
)
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
mv -v $PKG/usr/$BIG_PRGNAM/doc/* $PKG/usr/doc/$PRGNAM-$VERSION/
|
||||
rm -rf $PKG/usr/$BIG_PRGNAM
|
||||
cp -a INSTALL COPYING COPYING.LIB AUTHORS ChangeLog NEWS 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
|
||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
8
libraries/xlt/xlt.info
Normal file
8
libraries/xlt/xlt.info
Normal file
|
@ -0,0 +1,8 @@
|
|||
PRGNAM="xlt"
|
||||
VERSION="11.1.11"
|
||||
HOMEPAGE="http://sourceforge.net/projects/xlt"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/xlt/Xlt-11.1.11.tar.gz"
|
||||
MD5SUM="37a109c0bf2e0780bf79184be8273c92"
|
||||
MAINTAINER="Vincent Batts"
|
||||
EMAIL="vbatts@batts.mine.nu"
|
||||
APPROVED="Erik Hanson"
|
Loading…
Reference in a new issue