diff options
author | A. Tomasini <alto.tom@gmail.com> | 2023-12-04 18:51:16 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-12-06 10:09:31 +0700 |
commit | eda3a3abe3fad7e6e262930b42a658ea661c9ff0 (patch) | |
tree | 65d7efdf1a2190b928380dfee17042b2c253f372 /academic | |
parent | 5074955482e47bb072a8b385113b157c4ef65478 (diff) |
academic/xschem: Update script.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic')
-rw-r--r-- | academic/xschem/README | 2 | ||||
-rw-r--r-- | academic/xschem/doinst.sh | 1 | ||||
-rw-r--r-- | academic/xschem/xschem.SlackBuild | 35 |
3 files changed, 16 insertions, 22 deletions
diff --git a/academic/xschem/README b/academic/xschem/README index 9eed99ce405d6..9af371c59bba7 100644 --- a/academic/xschem/README +++ b/academic/xschem/README @@ -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. diff --git a/academic/xschem/doinst.sh b/academic/xschem/doinst.sh index 4e8ba7071dea7..5fb28930db0b9 100644 --- a/academic/xschem/doinst.sh +++ b/academic/xschem/doinst.sh @@ -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 - diff --git a/academic/xschem/xschem.SlackBuild b/academic/xschem/xschem.SlackBuild index e44e603499e8a..1c513ac5c2ac5 100644 --- a/academic/xschem/xschem.SlackBuild +++ b/academic/xschem/xschem.SlackBuild @@ -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 +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/ -cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild +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/doinst.sh > $PKG/install/doinst.sh cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh 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/ - /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |