misc/curtain: Updated for version 0.3

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2013-11-15 18:20:09 +07:00 committed by Robby Workman
parent c7a0ed17c3
commit 69fd013625
2 changed files with 11 additions and 15 deletions

View File

@ -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

View File

@ -1,8 +1,8 @@
PRGNAM="curtain"
VERSION="0.1"
VERSION="0.3"
HOMEPAGE="http://code.google.com/p/ardesia/"
DOWNLOAD="http://ardesia.googlecode.com/files/curtain-0.1.tar.gz"
MD5SUM="8fc9a40e0eae71dbfa148fb967fd8aa6"
DOWNLOAD="http://ardesia.googlecode.com/files/curtain-0.3.tar.gz"
MD5SUM="67bd5586d8a19233d047645f74ebf23f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""