diff --git a/academic/xschem/README b/academic/xschem/README index 9eed99ce40..9af371c59b 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 4e8ba7071d..5fb28930db 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 e44e603499..1c513ac5c2 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 - -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