slackbuilds/UNUSED/l/sk1libs/SlackBuild
2020-07-12 09:22:26 +02:00

51 lines
1 KiB
Text
Executable file

#!/bin/sh
CWD=$(pwd)
PRGNAM=$(basename $CWD)
VERSION=0.9.1
BUILD=1
ARCH=$(uname -m)
HOME=/home/gwh
TAG=gwh
OUTPUT=/tmp
TMP=/tmp/$TAG
PKG=$TMP/pkg-$PRGNAM
REPOSITORIES=$HOME/projets/packages/repositories
rm -fr $PKG $TMP/$PRGNAM-$VERSION
mkdir -p $TMP
[ -e $TMP/$PRGNAM-$VERSION ] && rm -fr $TMP/$PRGNAM-$VERSION
[ -e $PKG ] && rm -fr $PKG
cd $TMP
[ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] && wget -c "http://sk1project.org/dc.php?target=$PRGNAM-$VERSION.tar.gz" -O $CWD/$PRGNAM-$VERSION.tar.gz
tar xf $CWD/$PRGNAM-$VERSION.tar.?z*
cd $TMP/$PRGNAM-$VERSION
python setup.py install --root $PKG
#mv $PKG/usr/share/man $PKG/usr
mkdir -p $PKG/install
cat <<EOF > $PKG/install
$PRGNAM: $PRGNAM (libs for uniconvertor)
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM: http://sk1project.org/modules.php?name=Products&product=uniconvertor&op=download
EOF
cd $PKG
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr - .)-$ARCH-$BUILD$TAG.txz