# SliTaz package receipt. PACKAGE="frozen-bubble" VERSION="2.2.0" CATEGORY="games" SHORT_DESC="A bubbles game" MAINTAINER="slaxemulator@gmail.com" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://www.frozen-bubble.org" WGET_URL="$WEB_SITE/data/$TARBALL" DEPENDS="perl-locale-gettext libsdl-mixer libsdl-pango libsdl-perl" BUILD_DEPENDS="perl-locale-gettext gettext glib-dev libsdl-dev libsdl-gfx-dev libsdl-image-dev libsdl-net-dev freetype-dev libsdl-ttf-dev libsdl-mixer-dev libsdl-pango-dev libsmpeg-dev pkg-config libsdl-perl mesa-dev glibc-locale" # What is the latest version available today? current_version() { wget -O - http://www.frozen-bubble.org/downloads/ 2>/dev/null | \ sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;/beta/d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { cd $src make OPTIMIZE="${CFLAGS}" \ CFLAGS="$(pkg-config glib-2.0 --cflags)" INSTALLDIRS=vendor \ PREFIX=/usr make DESTDIR=$DESTDIR PREFIX=/usr install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/pixmaps cp -a $install/usr/bin $fs/usr cp -a $install/usr/lib $fs/usr cp -a $install/usr/share/frozen-bubble $fs/usr/share # Hack to correct wrong *.pm install path cp -a $fs/usr/lib/perl5/5.14.1/x86_64-linux/* \ $fs/usr/lib/perl5/5.14.1/i486-linux rm -fr $fs/usr/lib/perl5/5.14.1/x86_64-linux }