commit 957a4581073deba56e6a3a07cb84e4995567290b Author: Anke Date: Tue Nov 30 16:11:33 2010 +0000 Initial commit games repo, wesnoth & frozen-bubble diff --git a/frozen-bubble/PKGBUILD b/frozen-bubble/PKGBUILD new file mode 100644 index 000000000..a64c3a933 --- /dev/null +++ b/frozen-bubble/PKGBUILD @@ -0,0 +1,32 @@ +# +# Chakra Packages for Chakra, part of chakra-project.org +# +# maintainer (i686): Phil Miller +# maintainer (x86_64): Manuel Tortosa + +pkgname=frozen-bubble +pkgver=2.2.0 +pkgrel=1 +pkgdesc="A game in which you throw colorful bubbles and build groups to destroy the bubbles" +arch=('i686' 'x86_64') +url="http://www.frozen-bubble.org" +license=('GPL2') +depends=('sdl_perl' 'sdl_mixer' 'perl-locale-gettext' 'sdl_pango') +options=('!emptydirs') +source=(http://www.frozen-bubble.org/data/${pkgname}-${pkgver}.tar.bz2 \ + frozen-bubble.desktop) +md5sums=('f7987201470d6755ed309762d348e0dd' '3e0755836580e374e0911653f8cd33e2') + +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 + + find $startdir/pkg -name '.packlist' -delete + find $startdir/pkg -name '*.pod' -delete +} diff --git a/frozen-bubble/frozen-bubble.desktop b/frozen-bubble/frozen-bubble.desktop new file mode 100644 index 000000000..6e53e5dbb --- /dev/null +++ b/frozen-bubble/frozen-bubble.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Version=1.0 +Encoding=UTF-8 +Name=Frozen Bubble +Icon=frozen-bubble.png +Exec=frozen-bubble +Terminal=false +Categories=Game; diff --git a/wesnoth/PKGBUILD b/wesnoth/PKGBUILD new file mode 100644 index 000000000..dd4eb7df7 --- /dev/null +++ b/wesnoth/PKGBUILD @@ -0,0 +1,33 @@ +# +# Chakra Packages for Chakra, part of chakra-project.org +# +# maintainer (i686): Phil Miller +# maintainer (x86_64): Manuel Tortosa + +pkgname=wesnoth +pkgver=1.8.4 +pkgrel=1 +pkgdesc="A turn-based strategy game on a fantasy world" +arch=('i686' 'x86_64') +license=('GPL') +url="http://www.wesnoth.org/" +depends=('sdl_ttf' 'sdl_net' 'sdl_mixer' 'sdl_image' 'libvorbis' 'fribidi' 'freetype2' 'gcc-libs' 'pango' 'lua') +makedepends=('boost') +install=wesnoth.install +source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2 + wesnoth-libpng-1.4.0.patch) +md5sums=('2dce83f835ecce1d505ea60e46b7356f' + 'ca7412ffc4682ef55ddf82d56b0e2f08') + +build() { + cd "$srcdir/$pkgname-$pkgver" + patch -Np1 -i ../wesnoth-libpng-1.4.0.patch || return 1 + ./autogen.sh || return 1 + ./configure --prefix=/usr --localstatedir=/var --enable-tools --enable-editor --enable-server + make || return 1 +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install +} diff --git a/wesnoth/wesnoth-libpng-1.4.0.patch b/wesnoth/wesnoth-libpng-1.4.0.patch new file mode 100644 index 000000000..be8adfcaa --- /dev/null +++ b/wesnoth/wesnoth-libpng-1.4.0.patch @@ -0,0 +1,14 @@ +diff -Nur wesnoth-1.8.orig/src/tools/exploder_utils.cpp wesnoth-1.8/src/tools/exploder_utils.cpp +--- wesnoth-1.8.orig/src/tools/exploder_utils.cpp 2010-01-01 15:16:49.000000000 +0200 ++++ wesnoth-1.8/src/tools/exploder_utils.cpp 2010-04-08 17:38:03.066201123 +0300 +@@ -174,8 +174,8 @@ + //TODO: review whether providing NULL error handlers is something + //sensible + png_struct* png_ptr = png_create_write_struct +- (PNG_LIBPNG_VER_STRING, reinterpret_cast(png_voidp_NULL), +- png_error_ptr_NULL, png_error_ptr_NULL); ++ (PNG_LIBPNG_VER_STRING, reinterpret_cast(NULL), ++ NULL, NULL); + if(!png_ptr) + throw exploder_failure("Unable to initialize the png write structure"); + diff --git a/wesnoth/wesnoth.install b/wesnoth/wesnoth.install new file mode 100644 index 000000000..09c82e8b8 --- /dev/null +++ b/wesnoth/wesnoth.install @@ -0,0 +1,15 @@ +# arg 1: the new package version +post_install() { +cat << EOF +Note: +==> If you experience sound problems try setting your SDL_AUDIODRIVER environment variable to "dma" +==> eg. export SDL_AUDIODRIVER="dma" ; wesnoth +==> If "dma" doesn't work,other options are: dsp,alsa,artsc,esd,nas try to find the right output. +EOF +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + post_install $1 +}