summaryrefslogtreecommitdiffstats
path: root/abs/extra/frozen-bubble
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/frozen-bubble')
-rw-r--r--abs/extra/frozen-bubble/PKGBUILD49
-rw-r--r--abs/extra/frozen-bubble/frozen-bubble.desktop2
2 files changed, 31 insertions, 20 deletions
diff --git a/abs/extra/frozen-bubble/PKGBUILD b/abs/extra/frozen-bubble/PKGBUILD
index 1989276..c003f80 100644
--- a/abs/extra/frozen-bubble/PKGBUILD
+++ b/abs/extra/frozen-bubble/PKGBUILD
@@ -1,30 +1,41 @@
-# $Id: PKGBUILD 22250 2008-12-24 11:30:19Z allan $
-# Maintainer: Allan McRae <allan@archlinux.org>
+# $Id: PKGBUILD 160465 2012-06-02 10:25:48Z bluewind $
+# Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
+# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: Brandon Niemczyk <maccorin@cfl.rr.com>
pkgname=frozen-bubble
-pkgver=2.2.0
-pkgrel=2
+_pkgver=2.2.1-beta1
+pkgver=${_pkgver/-/}
+pkgrel=4
pkgdesc="A game in which you throw colorful bubbles and build groups to destroy the bubbles"
-arch=('i686' 'x86_64')
+arch=(i686 x86_64)
url="http://www.frozen-bubble.org"
-license=('GPL2')
-depends=('sdl_perl' 'sdl_mixer' 'perl-locale-gettext' 'sdl_pango')
+license=(GPL2)
+depends=(perl-sdl perl-ipc-system-simple perl-compress-bzip2 perl-file-which)
+makedepends=(perl-file-slurp perl-locale-maketext-lexicon)
options=('!emptydirs')
-source=(http://www.frozen-bubble.org/data/${pkgname}-${pkgver}.tar.bz2 \
+source=(http://www.frozen-bubble.org/data/$pkgname-$_pkgver.tar.bz2 \
frozen-bubble.desktop)
-md5sums=('f7987201470d6755ed309762d348e0dd' '3e0755836580e374e0911653f8cd33e2')
+md5sums=('825cc23ed806838b9d86de9982a5687a'
+ '01b10b77ba6ad856f5c199121c582272')
build() {
- cd ${srcdir}/${pkgname}-${pkgver}
- make OPTIMIZE="${CFLAGS}" \
- CFLAGS="$(pkg-config glib-2.0 --cflags)" INSTALLDIRS=vendor \
- PREFIX=/usr || return 1
-
- make DESTDIR=${pkgdir} PREFIX=/usr install || return 1
- install -D -m644 icons/frozen-bubble-icon-64x64.png ${pkgdir}/usr/share/pixmaps/frozen-bubble.png || return 1
- install -D -m644 ${srcdir}/frozen-bubble.desktop ${pkgdir}/usr/share/applications/frozen-bubble.desktop || return 1
+ cd "$srcdir/$pkgname-$_pkgver"
+ unset CFLAGS
+ # install module in vendor directories
+ perl Build.PL installdirs=vendor
+ perl Build
+}
+
+check() {
+ cd "$srcdir/$pkgname-$_pkgver"
+ perl Build test
+}
+
+package() {
+ cd "$srcdir/$pkgname-$_pkgver"
+ perl Build install destdir="$pkgdir"
- find $startdir/pkg -name '.packlist' -delete
- find $startdir/pkg -name '*.pod' -delete
+ install -D -m644 share/icons/frozen-bubble-icon-64x64.png "$pkgdir/usr/share/pixmaps/frozen-bubble.png"
+ install -D -m644 "$srcdir/frozen-bubble.desktop" "$pkgdir/usr/share/applications/frozen-bubble.desktop"
}
diff --git a/abs/extra/frozen-bubble/frozen-bubble.desktop b/abs/extra/frozen-bubble/frozen-bubble.desktop
index 6e53e5d..76a7bcd 100644
--- a/abs/extra/frozen-bubble/frozen-bubble.desktop
+++ b/abs/extra/frozen-bubble/frozen-bubble.desktop
@@ -4,6 +4,6 @@ Version=1.0
Encoding=UTF-8
Name=Frozen Bubble
Icon=frozen-bubble.png
-Exec=frozen-bubble
+Exec=/usr/bin/vendor_perl/frozen-bubble
Terminal=false
Categories=Game;