slackbuilds/xap/inkscape-bin/SlackBuild

56 lines
1.1 KiB
Text
Raw Normal View History

#!/bin/bash -e
# variables
CWD=$(pwd)
2024-10-21 21:29:30 +02:00
VERSION=${VERSION:-1.4}
ITEMNB=${ITEMNB:-53678}
COMMITNB=${COMMITNB:-e7c3feb}
PRGNAM=$(basename $CWD)
ARCH="AppImage"
BUILD=1
TAG=gwh
TMP=/tmp/$TAG
PKG=$TMP/pkg-$PRGNAM
OUTPUT=/tmp
PREFIX=/usr
# nettoyage préalable
rm -fr $PKG
mkdir -p $PKG/opt/$PRGNAM
# mise en place
cd $PKG/opt/$PRGNAM
wget -c https://inkscape.org/gallery/item/${ITEMNB}/Inkscape-${COMMITNB}-x86_64.AppImage -O ${PRGNAM}-${VERSION}.AppImage
chmod +x ${PRGNAM}-${VERSION}.AppImage
mkdir -p $PKG$PREFIX/bin/
cd $PKG$PREFIX/bin/
2023-07-31 14:27:14 +02:00
ln -s /opt/$PRGNAM/${PRGNAM}-${VERSION}.AppImage inkscape
# correction
cd $PKG
chown -R root:root *
# embaumement
mkdir -p $PKG/install
cat <<EOF > $PKG/install/slack-desc
$PRGNAM: $PRGNAM (A powerful, free design tool)
$PRGNAM:
$PRGNAM: Whether you are an illustrator, designer, web designer
$PRGNAM: or just someone who needs to create some vector imagery,
$PRGNAM: Inkscape is for you!
$PRGNAM:
$PRGNAM:
$PRGNAM: https://www.inkscape.org
$PRGNAM:
$PRGNAM:
EOF
# empaquetage
2023-08-16 12:23:26 +02:00
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz