calibre and inkscape

This commit is contained in:
Gwenhael Le Moine 2024-12-21 08:53:39 +01:00
parent 208f1c5acf
commit c113cf740c
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
2 changed files with 16 additions and 16 deletions

View file

@ -75,4 +75,4 @@ EOF
cd $PKG
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
/sbin/makepkg --linkadd y --chown n --prepend ${OUTPUT}/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txz
/sbin/makepkg --remove-tmp-rpaths --linkadd y --chown n --prepend ${OUTPUT}/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txz

View file

@ -6,7 +6,7 @@ VERSION=${VERSION:-1.4}
ITEMNB=${ITEMNB:-53678}
COMMITNB=${COMMITNB:-e7c3feb}
PRGNAM=$(basename $CWD)
PRGNAM=$(basename "$CWD")
ARCH="AppImage"
BUILD=1
@ -18,27 +18,27 @@ OUTPUT=/tmp
PREFIX=/usr
# nettoyage préalable
rm -fr $PKG
rm -fr "$PKG"
mkdir -p $PKG/opt/$PRGNAM
mkdir -p "$PKG"/opt/"$PRGNAM"
# mise en place
cd $PKG/opt/$PRGNAM
cd "$PKG"/opt/"$PRGNAM" || exit 1
wget -c https://inkscape.org/gallery/item/${ITEMNB}/Inkscape-${COMMITNB}-x86_64.AppImage -O ${PRGNAM}-${VERSION}.AppImage
chmod +x ${PRGNAM}-${VERSION}.AppImage
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/
ln -s /opt/$PRGNAM/${PRGNAM}-${VERSION}.AppImage inkscape
mkdir -p "$PKG$PREFIX"/bin/
cd "$PKG$PREFIX"/bin/ || exit 1
ln -s /opt/"$PRGNAM"/"${PRGNAM}"-"${VERSION}".AppImage inkscape
# correction
cd $PKG
chown -R root:root *
cd "$PKG" || exit 1
chown -R root:root ./*
# embaumement
mkdir -p $PKG/install
cat <<EOF > $PKG/install/slack-desc
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
@ -52,4 +52,4 @@ $PRGNAM:
EOF
# empaquetage
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/"$PRGNAM"-"${VERSION//-/}"-$ARCH-$BUILD$TAG.txz