mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
libraries/slib: Updated for version 3b4.
Holy batballs. That is all. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
e7ba1ee123
commit
b518e53b25
3 changed files with 37 additions and 27 deletions
|
@ -1 +1 @@
|
|||
chroot . /usr/bin/guile -q -s /usr/doc/@PRGNAM@-@VERSION@/guile-slibcat.script
|
||||
chroot . /usr/bin/guile1.8 -q -s /usr/libexec/slib/guile-slibcat.script
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=slib
|
||||
VERSION=3b2
|
||||
BUILD=${BUILD:-3}
|
||||
VERSION=${VERSION:-3b4}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -69,40 +69,50 @@ find . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
sed -i 's%/usr/local%/usr%g' Makefile
|
||||
make libdir=/usr/lib${LIBDIRSUFFIX}/
|
||||
make infoz DESTDIR=$PKG
|
||||
make libdir=/usr/lib${LIBDIRSUFFIX}/ install DESTDIR=$PKG
|
||||
# We don't have ginstall-info
|
||||
sed -i s,ginstall-info,install-info,g Makefile
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/share \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
--docdir=/usr/doc/$PRGNAM-$VERISON
|
||||
|
||||
# https://lists.gnu.org/archive/html/slib-discuss/2011-02/msg00005.html
|
||||
touch collectx.scm
|
||||
|
||||
SCHEME=guile1.8 \
|
||||
TEXI2HTML="$(which texi2html) -split -verbose" \
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
# https://www.gnu.org/software/guile/manual/html_node/SLIB-installation.html
|
||||
mkdir -p $PKG/usr/share/guile/1.8/
|
||||
ln -s ../../slib $PKG/usr/share/guile/1.8/
|
||||
|
||||
# The Makefile is braindead
|
||||
sed -i "s%$PKG%%g" $PKG/usr/bin/slib
|
||||
# somewhat perculiar quirk that only seems to be an issue on slackware
|
||||
ln -s mklibcat.scm $PKG/usr/share/slib/mklibcat
|
||||
|
||||
# guile is suppose to look to /usr/share/slib by default
|
||||
mkdir -p $PKG/usr/share/guile
|
||||
( cd $PKG/usr/share/ ; ln -s ../lib${LIBDIRSUFFIX}/slib . )
|
||||
( cd $PKG/usr/share/guile/ ; ln -s ../../lib${LIBDIRSUFFIX}/slib . )
|
||||
|
||||
# a somewhat perculiar quirk that only seems to be an issue on slackware
|
||||
( cd $PKG/usr/lib${LIBDIRSUFFIX}/slib ; ln -s mklibcat.scm mklibcat )
|
||||
# This will be invoked during postinstall to generate the guile catalog file
|
||||
mkdir -p $PKG/usr/libexec/slib
|
||||
cat $CWD/guile-slibcat.script > $PKG/usr/libexec/slib/guile-slibcat.script
|
||||
chmod 0755 $PKG/usr/libexec/slib/guile-slibcat.script
|
||||
|
||||
gzip -9 $PKG/usr/man/man1/*.1
|
||||
rm -f $PKG/usr/info/dir
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
ANNOUNCE FAQ COPYING ChangeLog README \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a ANNOUNCE ChangeLog COPYING FAQ README $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
cat $CWD/guile-slibcat.script > $PKG/usr/doc/$PRGNAM-$VERSION/guile-slibcat.script
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
sed -e s/@PRGNAM@/$PRGNAM/ -e s/@VERSION@/$VERSION/ $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -p -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="slib"
|
||||
VERSION="3b2"
|
||||
VERSION="3b4"
|
||||
HOMEPAGE="http://www-swiss.ai.mit.edu/~jaffer/SLIB.html"
|
||||
DOWNLOAD="http://swiss.csail.mit.edu/ftpdir/scm/OLD/slib-3b2.zip"
|
||||
MD5SUM="2f3a6ece49afb1e7db3bce7af039eaaa"
|
||||
DOWNLOAD="http://groups.csail.mit.edu/mac/ftpdir/scm/slib-3b4.zip"
|
||||
MD5SUM="935dfd0ad8af6f833946573a2f92c196"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
REQUIRES="guile1.8"
|
||||
MAINTAINER="Vincent Batts"
|
||||
EMAIL="vbatts@hashbangbash.com"
|
||||
|
|
Loading…
Reference in a new issue