Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

academic/xschem: Update script. #9065

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions academic/xschem/doinst.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi

37 changes: 22 additions & 15 deletions academic/xschem/xschem.SlackBuild
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)

PRGNAM=xschem
VERSION=${VERSION:-3.4.4}
VERSION=${VERSION:-3.4.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
Expand Down Expand Up @@ -89,25 +89,32 @@ 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

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
PKGDOC=$PKG/usr/doc
mkdir -p $PKGDOC

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/
PKGDOC=$PKG/usr/share/doc/$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
cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
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/

/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
4 changes: 2 additions & 2 deletions academic/xschem/xschem.desktop
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[Desktop Entry]
Exec=/usr/bin/xschem
InitialPreference=2
MimeType=application/xscheme;
Name=xscheme
MimeType=application/xschem;
Name=xschem
Comment=Schematic capture
Icon=/usr/share/pixmaps/xschem/xschem.png
Terminal=false
Expand Down