diff options
author | SanskritFritz | 2015-06-14 00:43:01 +0200 |
---|---|---|
committer | SanskritFritz | 2015-06-14 00:43:01 +0200 |
commit | 4710a1af0bd2e4027b8c25054668f3c879d1c4d4 (patch) | |
tree | 7984241e428ccc19dd2ed19e170072f4ef6ebac3 | |
download | aur-4710a1af0bd2e4027b8c25054668f3c879d1c4d4.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 34 | ||||
-rw-r--r-- | PKGBUILD | 58 | ||||
-rw-r--r-- | briquolo-gcc.patch | 24 | ||||
-rw-r--r-- | briquolo-libpng.patch | 30 | ||||
-rw-r--r-- | briquolo.desktop | 13 | ||||
-rw-r--r-- | briquolo.install | 8 | ||||
-rw-r--r-- | briquolo.png | bin | 0 -> 12938 bytes |
7 files changed, 167 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..bd9b53cdb299 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,34 @@ +pkgbase = briquolo + pkgdesc = An addictive block game + pkgver = 0.5.7 + pkgrel = 5 + url = http://briquolo.free.fr/ + install = briquolo.install + arch = i686 + arch = x86_64 + license = GPL + makedepends = patch + makedepends = autoconf + makedepends = automake + makedepends = cvs + depends = sdl + depends = sdl_mixer + depends = libpng + depends = sdl_ttf + depends = mesa + depends = desktop-file-utils + depends = glu + options = !makeflags + source = http://briquolo.free.fr/download/briquolo-0.5.7.tar.bz2 + source = briquolo.desktop + source = briquolo.png + source = briquolo-gcc.patch + source = briquolo-libpng.patch + md5sums = e24d22d2d719d64c231d3d76f9291d6e + md5sums = 0fb2744c4bb0e36bf9599a77a54183d7 + md5sums = 6a310dfa94225c9e16571e4e25eebfb3 + md5sums = d3077d1a57e531bbe8d1b15dae09969f + md5sums = f9b3afa24803a02d23616b859d880b1d + +pkgname = briquolo + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9343605b4ec7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,58 @@ +# Maintainer: +# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org> +# Contributor: Liberion <liberion[at]gmail[.]com> patch libpng compile + +pkgname=briquolo +pkgver=0.5.7 +pkgrel=5 +pkgdesc="An addictive block game" +arch=('i686' 'x86_64') +url="http://briquolo.free.fr/" +license=('GPL') +depends=('sdl' 'sdl_mixer' 'libpng' 'sdl_ttf' 'mesa' 'desktop-file-utils' 'glu') +makedepends=('patch' 'autoconf' 'automake' 'cvs') +install=$pkgname.install +options=('!makeflags') +source=(http://briquolo.free.fr/download/$pkgname-$pkgver.tar.bz2 \ + $pkgname.desktop $pkgname.png $pkgname-gcc.patch $pkgname-libpng.patch) +md5sums=('e24d22d2d719d64c231d3d76f9291d6e' + '0fb2744c4bb0e36bf9599a77a54183d7' + '6a310dfa94225c9e16571e4e25eebfb3' + 'd3077d1a57e531bbe8d1b15dae09969f' + 'f9b3afa24803a02d23616b859d880b1d') + +prepare() { + cd "${srcdir}"/$pkgname-$pkgver + +# Fixes gcc 4.3 compilation + patch -Np0 -i "${srcdir}"/$pkgname-gcc.patch +# Fixes libpng compilation problem + patch -Np1 -i "${srcdir}"/$pkgname-libpng.patch +# Fix for buggy Makefile - give it a desktop file to process + install -Dm644 "${srcdir}"/$pkgname.desktop \ + "${pkgdir}"/usr/share/applications/$pkgname.desktop +} + +build() { + cd "${srcdir}"/$pkgname-$pkgver + + autoreconf -fi + ./configure --prefix=/usr --with-x=yes --with-sdl=yes --disable-rpath --disable-sdltest + make +} + +package() { + cd "${srcdir}"/$pkgname-$pkgver + make prefix="${pkgdir}"/usr install +# make DESTDIR="${pkgdir}" install + +# Icons + install -Dm644 "${srcdir}"/$pkgname-$pkgver/desktop/$pkgname.svg \ + "${pkgdir}"/usr/share/pixmaps/$pkgname.svg + install -Dm644 $pkgname.png \ + "${pkgdir}"/usr/share/pixmaps/$pkgname.png + +# Force usage of correct desktop entry + install -Dm644 $pkgname.desktop \ + "${pkgdir}"/usr/share/applications/$pkgname.desktop +} diff --git a/briquolo-gcc.patch b/briquolo-gcc.patch new file mode 100644 index 000000000000..40ce8702fab5 --- /dev/null +++ b/briquolo-gcc.patch @@ -0,0 +1,24 @@ +--- src/Constante.cpp~ 2008-03-22 10:40:33.000000000 +0100 ++++ src/Constante.cpp 2008-04-20 21:46:12.000000000 +0200 +@@ -22,0 +23 @@ ++#include <stdlib.h> + +--- src/MOGL/MOGL_EnsembleObjet.cpp~ 2008-03-24 14:12:36.000000000 +0100 ++++ src/MOGL/MOGL_EnsembleObjet.cpp 2008-04-20 21:05:41.000000000 +0200 +@@ -27,0 +28 @@ ++#include <cstring> + +--- src/MOGL/MOGL_GestionnaireObjet.cpp~ 2008-03-24 13:56:13.000000000 +0100 ++++ src/MOGL/MOGL_GestionnaireObjet.cpp 2008-04-20 21:06:23.000000000 +0200 +@@ -23,0 +24 @@ ++#include <cstring> + +--- src/MOGL/MOGL_Objet.cpp~ 2008-04-20 21:07:10.000000000 +0200 ++++ src/MOGL/MOGL_Objet.cpp 2008-04-20 21:09:43.000000000 +0200 +@@ -22,0 +23 @@ ++#include <stdlib.h> + +--- src/MOGL/MOGL_Peau.cpp~ 2006-03-07 21:31:24.000000000 +0100 ++++ src/MOGL/MOGL_Peau.cpp 2008-04-20 21:40:50.000000000 +0200 +@@ -22,0 +23 @@ ++#include <stdlib.h> diff --git a/briquolo-libpng.patch b/briquolo-libpng.patch new file mode 100644 index 000000000000..983afa27cca2 --- /dev/null +++ b/briquolo-libpng.patch @@ -0,0 +1,30 @@ +diff -pur briquolo-0.5.7.orig//src/MOGL/MOGL_Image.cpp briquolo-0.5.7/src/MOGL/MOGL_Image.cpp +--- briquolo-0.5.7.orig//src/MOGL/MOGL_Image.cpp 2006-03-07 15:53:33.000000000 -0500 ++++ briquolo-0.5.7/src/MOGL/MOGL_Image.cpp 2010-03-09 10:50:03.826212996 -0500 +@@ -183,7 +183,7 @@ bool MOGL_Image::ChargerPNG(const char * + info_ptr = png_create_info_struct(png_ptr); + if (info_ptr == NULL) + { +- png_destroy_read_struct(&png_ptr, png_infopp_NULL, png_infopp_NULL); ++ png_destroy_read_struct(&png_ptr, NULL, NULL); + return false; + } + +@@ -191,7 +191,7 @@ bool MOGL_Image::ChargerPNG(const char * + if (setjmp(png_jmpbuf(png_ptr))) + { + // On libère la mémoire +- png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL); ++ png_destroy_read_struct(&png_ptr, &info_ptr, NULL); + return false; + } + +@@ -235,7 +235,7 @@ bool MOGL_Image::ChargerPNG(const char * + /* Expand grayscale images to the full 8 bits from 1, 2, or 4 bits/pixel */ + if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) + { +- png_set_gray_1_2_4_to_8(png_ptr); ++ png_set_expand_gray_1_2_4_to_8(png_ptr); + } + + /* Expand paletted or RGB images with transparency to full alpha channels diff --git a/briquolo.desktop b/briquolo.desktop new file mode 100644 index 000000000000..f6a5bc357aec --- /dev/null +++ b/briquolo.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Type=Application +Exec=briquolo +Icon=briquolo +Name=Briquolo +Name[fr]=Briquolo +Comment=An OpenGL breakout +Comment[fr]=Un casse brique OpenGL +Comment[cs]=OpenGL breakout +Categories=ArcadeGame;Game; +GenericName=BreakOut +GenericName[fr]=Casse Briques +GenericName[cs]=Breakout diff --git a/briquolo.install b/briquolo.install new file mode 100644 index 000000000000..60f0f42874e0 --- /dev/null +++ b/briquolo.install @@ -0,0 +1,8 @@ +post_install() { + echo "Updating desktop and mime database ..." + update-desktop-database -q +} + +op=$1 +shift +[ "$(type -t "$op")" = "function" ] && $op "$@" diff --git a/briquolo.png b/briquolo.png Binary files differnew file mode 100644 index 000000000000..e25bf9fc1036 --- /dev/null +++ b/briquolo.png |