summaryrefslogtreecommitdiff
path: root/multimedia/grip/grip.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/grip/grip.SlackBuild')
-rw-r--r--multimedia/grip/grip.SlackBuild22
1 files changed, 11 insertions, 11 deletions
diff --git a/multimedia/grip/grip.SlackBuild b/multimedia/grip/grip.SlackBuild
index 58f06bad7f..ffd3b609fd 100644
--- a/multimedia/grip/grip.SlackBuild
+++ b/multimedia/grip/grip.SlackBuild
@@ -34,7 +34,7 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R a-s,u+w,go+r-w .
-# Slack 12.2 keeps cdda headers in /usr/include/cdda, 12.1 has them
+# Slack 12.2 and up keeps cdda headers in /usr/include/cdda, 12.1 has them
# in /usr/include itself. Be adaptable.
if [ -r /usr/include/cdda/cdda_interface.h ]; then
SLKCFLAGS="$SLKCFLAGS -I/usr/include/cdda"
@@ -54,7 +54,7 @@ make
# DESTDIR not supported.
make install PREFIX=$PKG/usr
-strip $PKG/usr/bin/*
+strip --strip-unneeded $PKG/usr/bin/*
rm -f $PKG/usr/man/man1/gcd.1
gzip $PKG/usr/man/man1/$PRGNAM.1
@@ -63,20 +63,20 @@ gzip $PKG/usr/man/man1/$PRGNAM.1
# Why does it create an empty usr/lib dir?
rm -rf $PKG/usr/lib
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp $CWD/dot.grip.sample CHANGES CREDITS LICENSE README TODO \
- $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-
-mkdir -p $PKG/usr/share/pixmaps
+mkdir -p $PKG/usr/share/{applications,pixmaps}
+cp $CWD/grip.desktop $PKG/usr/share/applications
cp pixmaps/grip.xpm $PKG/usr/share/pixmaps
-mkdir -p $PKG/usr/share/applications
-cp $CWD/grip.desktop $PKG/usr/share/applications
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ $CWD/dot.grip.sample CHANGES CREDITS LICENSE README TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+chown -R root:root $PKG/usr/doc ; chmod 0644 $PKG/usr/doc/$PRGNAM-$VERSION/*
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.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}