summaryrefslogtreecommitdiff
path: root/misc/curtain/curtain.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'misc/curtain/curtain.SlackBuild')
-rw-r--r--misc/curtain/curtain.SlackBuild20
1 files changed, 8 insertions, 12 deletions
diff --git a/misc/curtain/curtain.SlackBuild b/misc/curtain/curtain.SlackBuild
index 552afbc9bf..092973b424 100644
--- a/misc/curtain/curtain.SlackBuild
+++ b/misc/curtain/curtain.SlackBuild
@@ -7,7 +7,7 @@
# Public Domain
PRGNAM=curtain
-VERSION=${VERSION:-0.1}
+VERSION=${VERSION:-0.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -49,10 +49,11 @@ cd $PRGNAM-$VERSION
chown -R root:root .
# If you are going to blindly reset permissions, this is a bit more readable.
# However '-perm /111' may only be compatible with only gnu/find.
-find . \
- -type d -exec chmod 755 {} \; -o \
- -type f -perm /111 -exec chmod 755 {} \; -o \
- -type f -exec chmod 644 {} \;
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -65,16 +66,11 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
-# Make sure the Icon parameter is set properly in .desktop file
-sed -i 's/Icon=.*/Icon=curtain/' $PKG/usr/share/applications/curtain.desktop
-# Copy the icon to the proper folder
-mkdir -p $PKG/usr/share/icons/hicolor/22x22/apps/
-cp $PKG/usr/share/pixmaps/curtain.png $PKG/usr/share/icons/hicolor/22x22/apps
-
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
-# No Manpages
+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/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README $PKG/usr/doc/$PRGNAM-$VERSION