academic/xschem: Update script.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
A. Tomasini 2023-12-04 18:51:16 +07:00 committed by Willy Sudiarto Raharjo
parent 5074955482
commit eda3a3abe3
3 changed files with 20 additions and 26 deletions

View file

@ -15,4 +15,4 @@ be defined by the user -tcl extension language allows the creation
of scripts; any user command in the drawing window has an associated
tcl comand - VHDL / Verilog / Spice netlist, ready for simulation -
Behavioral VHDL / Verilog code can be embedded as one of the properties
of the schematic block,
of the schematic block.

View file

@ -1,4 +1,3 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi

View file

@ -89,30 +89,25 @@ make install PREFIX=/usr DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKGDOC
cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
printf "\033[32m remane usr/share/doc/${PRGNAM} usr/share/doc/$PRGNAM-$VERSION\033[0m\n"
mv usr/share/doc/${PRGNAM} usr/doc/$PRGNAM-$VERSION
rm -rf $PKG/usr/share/doc
printf "\033[32m create desktop and icons\033[0m\n"
mkdir -p usr/share/applications
mkdir -p usr/share/pixmaps/xschem/
cp $CWD/${PRGNAM}.desktop usr/share/applications/
cp $CWD/${PRGNAM}.png usr/share/pixmaps/xschem/
# compress the manual
printf "\033[32mcompress manual in ${PKG}/usr/share/doc/share/man\033[0m\n"
find usr/share/man -name "*.[12345678n]" -exec gzip {} \;
mv $PKG/usr/share/man $PKG/usr/
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
mkdir -p $PKG/usr/share/applications
mkdir -p $PKG/usr/share/pixmaps/$PRGNAM/
cp $CWD/$PRGNAM.desktop $PKG/usr/share/applications/
cp $CWD/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM/
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
mv $PKG/usr/share/doc/$PRGNAM/* $PKG/usr/doc/$PRGNAM-$VERSION/
rmdir $PKG/usr/share/doc/$PRGNAM/
rmdir $PKG/usr/share/doc/
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.$PKGTYPE