diff options
Diffstat (limited to 'desktop/tty-clock/tty-clock.SlackBuild')
-rw-r--r-- | desktop/tty-clock/tty-clock.SlackBuild | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/desktop/tty-clock/tty-clock.SlackBuild b/desktop/tty-clock/tty-clock.SlackBuild index acac400b24e3f..5fccb00f91ed9 100644 --- a/desktop/tty-clock/tty-clock.SlackBuild +++ b/desktop/tty-clock/tty-clock.SlackBuild @@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=tty-clock -VERSION=${VERSION:-git20130806} +VERSION=${VERSION:-2.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -69,7 +69,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.xz +tar xvf $CWD/$PRGNAM-$VERSION.tar.?z cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -78,20 +78,15 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -sed -i 's%INSTALLPATH =.*%INSTALLPATH = /usr/bin/%' Makefile +sed -i 's,share/man,man,g' Makefile -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -make -make install DESTDIR=$PKG - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +make CFLAGS="$SLKCFLAGS" +make install DESTDIR=$PKG PREFIX=/usr +strip --strip-unneeded $PKG/usr/bin/$PRGNAM +gzip -9 $PKG/usr/man/man?/*.? mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - README \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |