diff options
Diffstat (limited to 'games/frozen-bubble/frozen-bubble.SlackBuild')
-rw-r--r-- | games/frozen-bubble/frozen-bubble.SlackBuild | 48 |
1 files changed, 26 insertions, 22 deletions
diff --git a/games/frozen-bubble/frozen-bubble.SlackBuild b/games/frozen-bubble/frozen-bubble.SlackBuild index 57ec9a1b68..288ae83dc9 100644 --- a/games/frozen-bubble/frozen-bubble.SlackBuild +++ b/games/frozen-bubble/frozen-bubble.SlackBuild @@ -23,8 +23,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=frozen-bubble -VERSION=2.2.0 -BUILD=${BUILD:-2} +VERSION=905bf71 +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -60,38 +60,42 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar jxvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz cd $PRGNAM-$VERSION chown -R root:root . -chmod -R u+w,go+r-w,a-s . +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 `pkg-config glib-2.0 --cflags`" \ -make INSTALLDIRS=vendor PREFIX=/usr -make install DESTDIR=$PKG PREFIX=/usr +perl Build.PL \ + prefix=/usr \ + installdirs=vendor \ + optimize="$SLKCFLAGS" \ + destdir=$PKG +./Build +./Build test +./Build install \ + --install_path bindoc=/usr/man/man1 \ + --install_path libdoc=/usr/man/man3 mkdir -p $PKG/usr/share/applications $PKG/usr/share/icons/hicolor/16x16 \ $PKG/usr/share/icons/hicolor/32x32 $PKG/usr/share/icons/hicolor/48x48 \ $PKG/usr/share/icons/hicolor/64x64 cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop -cp -a icons/$PRGNAM-icon-16x16.png $PKG/usr/share/icons/hicolor/16x16/$PRGNAM.png -cp -a icons/$PRGNAM-icon-32x32.png $PKG/usr/share/icons/hicolor/32x32/$PRGNAM.png -cp -a icons/$PRGNAM-icon-48x48.png $PKG/usr/share/icons/hicolor/48x48/$PRGNAM.png -cp -a icons/$PRGNAM-icon-64x64.png $PKG/usr/share/icons/hicolor/64x64/$PRGNAM.png +cp -a share/icons/$PRGNAM-icon-16x16.png $PKG/usr/share/icons/hicolor/16x16/$PRGNAM.png +cp -a share/icons/$PRGNAM-icon-32x32.png $PKG/usr/share/icons/hicolor/32x32/$PRGNAM.png +cp -a share/icons/$PRGNAM-icon-48x48.png $PKG/usr/share/icons/hicolor/48x48/$PRGNAM.png +cp -a share/icons/$PRGNAM-icon-64x64.png $PKG/usr/share/icons/hicolor/64x64/$PRGNAM.png -mv $PKG/usr/share/man $PKG/usr/man -( cd $PKG/usr/man - find . -type f -exec chmod 644 {} \; - find . -type f -exec gzip -9 {} \; - for i in $(find . -type l); do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -) +find $PKG/usr/man -type f -exec gzip -9 {} \; -( cd $PKG - find . -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f - find . -type d -depth -exec rmdir {} \; 2>/dev/null -) +find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true +find $PKG -depth -type d -empty -delete || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING NEWS README TIPS VERSION $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS Changes COPYING HISTORY INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |