Commit 607d1b6a authored by Adrián Chaves Fernández (Gallaecio)'s avatar Adrián Chaves Fernández (Gallaecio)
Browse files

Stable versions of 'freeciv', 'openttd' and 'wesnoth'.

parent 934d4696
......@@ -7,8 +7,7 @@
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=freeciv
pkgver=2.3.0_beta1
_pkgver=2.3.0-beta1
pkgver=2.2.4
pkgrel=1
pkgdesc="Multiplayer clone of Civilization™."
arch=('i686' 'x86_64')
......@@ -16,11 +15,11 @@ url="http://www.freeciv.org/"
license=('GPL2')
depends=('bzip2' 'freetype2' 'readline' 'sdl_image')
changelog=ChangeLog
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$_pkgver.tar.bz2)
md5sums=('3d12e271887798be324f7f4b696b3cad')
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2)
md5sums=('29dec5214b565c19d925cb82c4373831')
build() {
cd $srcdir/$pkgname-$_pkgver
cd $srcdir/$pkgname-$pkgver
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
......@@ -30,7 +29,7 @@ build() {
}
package() {
cd $srcdir/$pkgname-$_pkgver
cd $srcdir/$pkgname-$pkgver
install -dm 755 $pkgdir/etc
make DESTDIR=$pkgdir install
}
......@@ -3,34 +3,26 @@
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=openttd
pkgver=1.1.0_beta3
_pkgver=1.1.0-beta3
_gfxver=0.3.2
pkgver=1.0.5
_gfxver=0.3.1
_sfxver=0.2.3
_msxver=0.3.1
pkgrel=1
pkgdesc="An engine for running Transport Tycoon Deluxe or alternative data files (FOSS ones included)."
pkgrel=2
pkgdesc="An engine for running Transport Tycoon Deluxe."
arch=('i686' 'x86_64')
url='http://www.openttd.org'
license=('custom: Engine and graphics: GPLv2 or later. Sounds: some public domain, some Sampling Plus License. Music: both GPLv2 and Sampling Plus
License (dual licensing).')
license=('GPL')
depends=('desktop-file-utils' 'fontconfig' 'hicolor-icon-theme' 'icu' 'libpng' 'sdl')
install=$pkgname.install
source=("http://binaries.openttd.org/releases/$_pkgver/$pkgname-$_pkgver-source.tar.xz"
source=("http://binaries.openttd.org/releases/$pkgver/$pkgname-$pkgver-source.tar.bz2"
"http://bundles.openttdcoop.org/opengfx/releases/$_gfxver/opengfx-$_gfxver.zip"
"http://bundles.openttdcoop.org/opensfx/releases/$_sfxver/opensfx-$_sfxver.zip"
"http://bundles.openttdcoop.org/openmsx/releases/$_msxver/openmsx-$_msxver.zip")
md5sums=('b403e7fbd49f127e14a3ab6f9b58ef0a'
'70a09cf9df7938a3c3f184d18fc4f0f1'
'6e3a5cf97fe69e3a351c3e0615a14b04'
'858b79d44aea6de5e15d9d1439e86cc3')
"http://bundles.openttdcoop.org/opensfx/releases/$_sfxver/opensfx-$_sfxver.zip")
md5sums=('fc79f788e2be140948b972c32b0f1eec'
'47ebb29cfc43ae945eaa0fe17698551d'
'6e3a5cf97fe69e3a351c3e0615a14b04')
build() {
cd $srcdir/$pkgname-$_pkgver
cd $srcdir/$pkgname-$pkgver
./configure \
--prefix-dir=/usr \
......@@ -46,30 +38,29 @@ build() {
}
package() {
cd $srcdir/$pkgname-$pkgver
# Engine.
cd $srcdir/$pkgname-$_pkgver
# Core.
make install
# Graphics.
cd $srcdir/opengfx-$_gfxver
mkdir -pm0755 $pkgdir/usr/share/$pkgname/data
chmod 0644 *
cp *.grf $pkgdir/usr/share/$pkgname/data/
cp *.obg $pkgdir/usr/share/$pkgname/data/
chmod 0644 *
mkdir -pm0755 $pkgdir/usr/share/$pkgname/data
cp *.grf $pkgdir/usr/share/$pkgname/data/
cp *.obg $pkgdir/usr/share/$pkgname/data/
# Sounds.
cd $srcdir/opensfx-$_sfxver
mkdir -pm0755 $pkgdir/usr/share/$pkgname/data
cp opensfx.* $pkgdir/usr/share/$pkgname/data/
# Sounds license.
install -Dm644 license.txt $pkgdir/usr/share/licenses/$pkgname/"Sounds license.txt"
install -Dm644 readme.txt $pkgdir/usr/share/licenses/$pkgname/"Sounds readme.txt"
chmod 0644 *
mkdir -pm0755 $pkgdir/usr/share/openttd/data
# Music.
cd $srcdir/openmsx-$_msxver
mkdir -pm0755 $pkgdir/usr/share/$pkgname/gm
cp openmsx.* $pkgdir/usr/share/$pkgname/gm/
cp *.mid $pkgdir/usr/share/$pkgname/gm/
cp opensfx.* $pkgdir/usr/share/openttd/data/
install -Dm644 license.txt $pkgdir/usr/share/licenses/${pkgname}/license
install -Dm644 readme.txt $pkgdir/usr/share/licenses/${pkgname}/readme
}
......@@ -7,27 +7,29 @@
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=wesnoth
pkgver=1.9.4
pkgver=1.8.5
pkgrel=1
pkgdesc="A turn-based strategy game on a fantasy world."
arch=('i686' 'x86_64')
license=('GPL2')
license=('GPL')
url="http://www.wesnoth.org/"
depends=('boost' 'freetype2' 'fribidi' 'gcc-libs' 'libvorbis' 'lua' 'pango' 'sdl_image' 'sdl_mixer' 'sdl_net' 'sdl_ttf')
makedepends=('cmake')
source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2")
md5sums=('1dea34208d96b5cd0c7f77e6e8610e51')
depends=('freetype2' 'fribidi' 'gcc-libs' 'libvorbis' 'lua' 'pango' 'sdl_image' 'sdl_mixer' 'sdl_net' 'sdl_ttf')
makedepends=('boost')
install=wesnoth.install
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2
wesnoth-libpng-1.4.0.patch)
md5sums=('a800285d1406690755dd0ea22b98b6df'
'ca7412ffc4682ef55ddf82d56b0e2f08')
build() {
cd $srcdir/$pkgname-$pkgver
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
..
make
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/build
cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install
}
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>(png_voidp_NULL),
- png_error_ptr_NULL, png_error_ptr_NULL);
+ (PNG_LIBPNG_VER_STRING, reinterpret_cast<png_voidp>(NULL),
+ NULL, NULL);
if(!png_ptr)
throw exploder_failure("Unable to initialize the png write structure");
# 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
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment