summaryrefslogtreecommitdiffstats
path: root/hydrogen
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2009-09-22 09:40:00 +0000
committer Eric Hameleers <alien@slackware.com>2009-09-22 09:40:00 +0000
commit5973eaca73a8c2af080193c5808ae340516c473e (patch)
treeff923818a10c11459d45cd95eadc4f1adc526cdd /hydrogen
parent1bb17f6aaf14aa442ad4956a7b9acfc1acad0bf1 (diff)
downloadasb-5973eaca73a8c2af080193c5808ae340516c473e.tar.gz
asb-5973eaca73a8c2af080193c5808ae340516c473e.tar.xz
Several packaging fixes
Diffstat (limited to 'hydrogen')
-rwxr-xr-xhydrogen/build/hydrogen.SlackBuild28
1 files changed, 19 insertions, 9 deletions
diff --git a/hydrogen/build/hydrogen.SlackBuild b/hydrogen/build/hydrogen.SlackBuild
index 25675f19..c8e7bea4 100755
--- a/hydrogen/build/hydrogen.SlackBuild
+++ b/hydrogen/build/hydrogen.SlackBuild
@@ -157,10 +157,12 @@ scons \
jack=${USE_JACK} lrdf=${USE_LRDF} libarchive=1 \
DESTDIR=$PKG install 2>&1 | tee $OUTPUT/install-${PRGNAM}.log
-# Move the svg files to a suitable location:
-mkdir -p $PKG/usr/icons/hicolor/scalable/apps
-mv $PKG/usr/share/pixmaps/*.svg $PKG/usr/icons/hicolor/scalable/apps/
-rmdir $PKG/usr/share/pixmaps || true
+# Move the svg files to proper place and create png files for compatibility:
+for IMG in $PKG/usr/share/pixmaps/*.svg ; do
+ convert $IMG -scale 64 $PKG/usr/share/$(basename $IMG .svg).png
+done
+mkdir -p $PKG/usr/share/icons/hicolor/scalable/apps
+mv $PKG/usr/share/pixmaps/*.svg $PKG/usr/share/icons/hicolor/scalable/apps/
# Add this to the doinst.sh:
! [ -d $PKG/install ] && mkdir -p $PKG/install
@@ -180,14 +182,22 @@ cat $SRCDIR/$(basename $0) | sed \
-e "/^ARCH=/s/:-.*}/:-$ARCH}/" \
-e "/^BUILD=/s/:-.*}/:-$BUILD}/" \
> $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+# Get the man pages outta here!
+mv $PKG/usr/share/hydrogen/data/doc/man $PKG/usr/
+# Hydrogen actually looks for "/usr/share/hydrogen/data/doc"
+( cd $PKG/usr/doc/$PRGNAM-$VERSION/
+ ln -s ../../share/hydrogen/data/doc html
+)
chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION
find $PKG/usr/doc -type f -exec chmod 644 {} \;
-# Compress the man page(s):
-if [ -d $PKG/usr/man ]; then
- find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
- for i in $(find $PKG/usr/man -type l -name "*.?") ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-fi
+# Fix and compress the man page(s) if there are any (0.9.4 has none?):
+( cd $PKG/usr/man
+ mkdir ru/man1 ; mv ru/*.1 ru/man1/
+ mv C man1
+ find . -type f -name "*.?" -exec gzip -9f {} \;
+ for i in $(find . -type l -name "*.?") ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+)
# Strip binaries:
find $PKG | xargs file | grep -e "executable" -e "shared object" \