Commit 1f233cee authored by Adrian Chaves Fernandez (Gallaecio)'s avatar Adrian Chaves Fernandez (Gallaecio)
Browse files

Added new version of Enet, 1.2.4, with rebuild of 0 A.D., Lips of Suna, Speed...

Added new version of Enet, 1.2.4, with rebuild of 0 A.D., Lips of Suna, Speed Dreams, and SuperTuxKart. Lips of Suna was also upgraded to its latest version, 0.3.1. Also, SuperTuxKart was upgraded to its latest version, 0.7.1b, which also meant Irrlicht was replaced by a SVN version of itself, and SuperTuxKart packages for tracks and karts were removed, since they can be installed from the game itself.
parent 4b6ae134
......@@ -9,7 +9,7 @@ source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=0ad
pkgver=alpha_5
_pkgver=r09530-alpha
pkgrel=1
pkgrel=2
pkgdesc="Cross-platform, 3D and historically-based real-time strategy game."
arch=('i686' 'x86_64')
url="http://wildfiregames.com/0ad"
......
......@@ -7,25 +7,24 @@
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=enet
pkgver=1.2.3
pkgrel=2
pkgdesc='A relatively thin, simple and robust network communication layer on top of UDP. (Old Version)'
pkgver=1.2.4
pkgrel=1
pkgdesc='A relatively thin, simple and robust network communication layer on top of UDP.'
arch=('i686' 'x86_64')
url='http://enet.bespin.org/'
license=('MIT')
replaces=('enet-old')
changelog=ChangeLog
source=("http://$pkgname.bespin.org/download/$pkgname-$pkgver.tar.gz")
md5sums=('30be76b63db9bcebb89e142ddbada20b')
md5sums=('e2c35f5090a8a26c5ea41e6d08fadc91')
build() {
cd $pkgname-$pkgver
CFLAGS="-fPIC" \
# CFLAGS="-fPIC" \
./configure \
--prefix=/usr
make
# gcc -Wl,-soname,libenet.so.2 -shared -o libenet.so.2 *.o
}
package() {
......@@ -33,8 +32,6 @@ package() {
make prefix=$pkgdir/usr install
# install -m 755 libenet.so.2 $pkgdir/usr/lib
# License:
install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
......@@ -6,29 +6,48 @@
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=irrlicht
pkgver=1.7.2
pkgname=irrlicht-svn
_pkgname=irrlicht
pkgver=3777
pkgrel=1
pkgdesc="High performance realtime 3D graphics engine."
arch=('i686' 'x86_64')
url="http://irrlicht.sourceforge.net/"
license=('ZLIB')
depends=('libgl' 'libjpeg' 'bzip2')
makedepends=('subversion')
changelog=ChangeLog
source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.zip")
md5sums=('eb627d4c432bf73f12bc6d9ddc700b07')
provides=('irrlicht')
replaces=('irrlicht') # It will be this way until SuperTuxKart supports a stable release.
_svntrunk="https://$_pkgname.svn.sourceforge.net/svnroot/$_pkgname/trunk"
_svnmod="$_pkgname"
build() {
cd $srcdir/$pkgname-$pkgver
sed -i -e '/^#.*NON_SYSTEM_ZLIB/d' \
-e '/^#.*NON_SYSTEM_JPEG/d' \
-e '/^#.*NON_SYSTEM_BZLIB/d' \
include/IrrCompileConfig.h || return 1
msg "Starting SVN checkout..."
cd $srcdir
if [ -d $_svnmod/.svn ]; then
(cd $_svnmod && svn up)
else
svn co $_svntrunk $_svnmod
fi
msg "SVN checkout done or server timeout."
msg "Starting make..."
rm -rf $srcdir/$_svnmod-build
cp -r $srcdir/$_svnmod $srcdir/$_svnmod-build
cd $srcdir/$_svnmod-build
# Use system libraries.
sed -i -e '/^#define.*NON_SYSTEM*/d' include/IrrCompileConfig.h || return 1
cd source/Irrlicht
sed -i -e '/^CXXFLAGS/s:-g.*::' \
-e '/^CXXFLAGS/s:-Wall::' \
sed -i -e "/^INSTALL_DIR/s:=.*:=$pkgdir/usr/lib:" \
-e '/^CXXFLAGS/s:-g.*::' \
-e '/^CXXFLAGS/s:-Wall::' \
-e '/^CFLAGS/s/:= -O3 -fexpensive-optimizations/+=/' \
-e '/^CXXINCS/s:-Izlib -Ijpeglib::' \
-e '/^ZLIBOBJ/d' \
......@@ -36,7 +55,6 @@ build() {
-e '/^BZIP2OBJ/d' \
-e '/.o=.d/d' \
-e '/^sharedlib: LDFLAGS/s:+=:+= -lGL -lXxf86vm -ljpeg -lbz2 -lz:' \
-e "/^INSTALL_DIR/s:=.*:=$pkgdir/usr/lib:" \
-e 's/0-SVN/1/' \
-e 's/.$(VERSION_MINOR) -o/ -o/' \
Makefile || return 1
......@@ -45,43 +63,43 @@ build() {
make
}
package() {
cd $srcdir/$pkgname-$pkgver/source/Irrlicht
cd $srcdir/$_svnmod-build/source/Irrlicht
install -d $pkgdir/usr/lib \
$pkgdir/usr/share/licenses/$pkgname \
$pkgdir/usr/share/$pkgname/examples/bin \
$pkgdir/usr/share/doc/$pkgname
$pkgdir/usr/share/licenses/$_pkgname \
$pkgdir/usr/share/$_pkgname/examples/bin \
$pkgdir/usr/share/doc/$_pkgname
make install || return 1
cd $srcdir/$pkgname-$pkgver/
install -m644 readme.txt $pkgdir/usr/share/licenses/$pkgname
cd $srcdir/$_svnmod-build/
install -m644 readme.txt $pkgdir/usr/share/licenses/$_pkgname
# Install static library and fix headers permissions
install -m644 lib/Linux/libIrrlicht.a $pkgdir/usr/lib
chmod 644 $pkgdir/usr/include/$pkgname/*
chmod 644 $pkgdir/usr/include/$_pkgname/*
# Install media files for examples
cp -r media $pkgdir/usr/share/$pkgname
cp -r media $pkgdir/usr/share/$_pkgname
# Install documentation
cp -r doc/* $pkgdir/usr/share/doc/$pkgname
rm -f $pkgdir/usr/share/doc/$pkgname/*.txt
cp -r doc/* $pkgdir/usr/share/doc/$_pkgname
rm -f $pkgdir/usr/share/doc/$_pkgname/*.txt
cd $pkgdir/usr/lib
ln -s libIrrlicht.so.$pkgver libIrrlicht.so.1
# Just a helper for examples compilation
ln -s libIrrlicht.so.$pkgver $srcdir/$pkgname-$pkgver/lib/Linux/libIrrlicht.so
ln -s libIrrlicht.so.$pkgver $srcdir/$_svnmod-build/lib/Linux/libIrrlicht.so
# Edit, build and install the examples
cd $srcdir/$pkgname-$pkgver/examples
cd $srcdir/$_svnmod-build/examples
sed -i '/define USE_IRRKLANG/s:.*://&:' ./Demo/CDemo.h || return 1
sed -i '/^CXXFLAGS/d' $(grep -Rl "^CXXFLAGS =" *)
make
install -m755 ../bin/Linux/* /$pkgdir/usr/share/$pkgname/examples/bin/
install -m755 ../bin/Linux/* /$pkgdir/usr/share/$_pkgname/examples/bin/
}
......@@ -7,7 +7,7 @@
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=lipsofsuna
pkgver=0.3.0
pkgver=0.3.1
pkgrel=1
pkgdesc="Tongue-in-cheek dungeon crawl game that takes place in the chaotic dungeons of Suna."
arch=('i686' 'x86_64')
......@@ -17,7 +17,7 @@ depends=('bullet' 'enet' 'flac' 'glew' 'inotify-tools' 'libogg' 'libvorbis' 'lua
makedepends=('python')
changelog=ChangeLog
source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz")
md5sums=('b196f30f7f01f9eba74d0504bf8d4a1d')
md5sums=('d8e2ce468afd4e5576a9647246b37c27')
build() {
cd $srcdir/$pkgname-$pkgver
......
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=speed-dreams-data
_pkgname=speed-dreams
pkgver=1.4.0
_pkgver=1.4.0-r2307 # For managing files and directories
pkgrel=1
pkgdesc="A racing simulator with rich graphics and physics (data files)."
arch=('any')
url="http://speed-dreams.sourceforge.net/"
license=('GPL2')
depends=()
makedepends=('enet' 'freealut' 'freeglut' 'libpng' 'libxmu' 'libxrandr'
'plib>=1.8.3' 'libjpeg' 'zlib')
source=("http://sourceforge.net/projects/$_pkgname/files/$pkgver/$_pkgname-$_pkgver-src.tar.bz2/download")
md5sums=('92c324c2c47a598dea9278d9a66c5b78')
build() {
cd $srcdir/$_pkgname-$pkgver-src
unset LDFLAGS MAKEFLAGS
./configure \
--prefix=/opt/$_pkgname \
--x-includes=/usr/include \
--x-libraries=/usr/lib
make
}
package() {
cd $srcdir/$_pkgname-$pkgver-src
make DESTDIR=$pkgdir/ install datainstall
find $pkgdir/ -type d -exec chmod 755 {} \;
rm -r $pkgdir/opt/speed-dreams/bin
rm -r $pkgdir/opt/speed-dreams/lib
}
......@@ -9,12 +9,13 @@ source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=speed-dreams
pkgver=1.4.0
_pkgver=1.4.0-r2307
pkgrel=2
pkgdesc="Speed Dreams is a fork of TORCS which aims to implement exciting new features, improving visual and physics realism."
pkgrel=3
pkgdesc="A racing simulatir with rich graphics and physics."
arch=('i686' 'x86_64')
url="http://speed-dreams.sourceforge.net/"
license=('GPL2')
depends=('enet' 'freealut' 'freeglut' 'libpng' 'libxi' 'libxmu' 'libxrandr' 'plib>=1.8.3' 'libjpeg' 'zlib')
depends=('enet' 'freealut' 'freeglut' 'libpng' 'libxi' 'libxmu' 'libxrandr'
'plib>=1.8.3' 'libjpeg' 'speed-dreams-data' 'zlib')
source=("http://sourceforge.net/projects/$pkgname/files/$pkgver/$pkgname-$_pkgver-src.tar.bz2/download"
"$pkgname.sh")
md5sums=('92c324c2c47a598dea9278d9a66c5b78'
......@@ -23,12 +24,13 @@ md5sums=('92c324c2c47a598dea9278d9a66c5b78'
build() {
cd $srcdir/$pkgname-$pkgver-src
unset LDFLAGS
unset LDFLAGS MAKEFLAGS
./configure \
--prefix=/opt/$pkgname \
--prefix=/opt/$_pkgname \
--x-includes=/usr/include \
--x-libraries=/usr/lib
--x-libraries=/usr/lib
make
}
......@@ -36,8 +38,9 @@ package() {
cd $srcdir/$pkgname-$pkgver-src
make DESTDIR=$pkgdir/ install datainstall
install -D -m644 icon.png $pkgdir/usr/share/pixmaps/speed-dreams.png
install -D -m755 $srcdir/$pkgname.sh $pkgdir/etc/profile.d/$pkgname.sh
install -D -m644 icon.png $pkgdir/usr/share/pixmaps/$pkgname.png
install -D -m755 ../$pkgname.sh $pkgdir/bin/$pkgname
find $pkgdir/ -type d -exec chmod 755 {} \;
rm -r $pkgdir/opt/share
}
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=supertuxkart-addons-karts
pkgver=0.7
pkgrel=2
pkgdesc="Additional karts for SuperTuxKart."
url="http://supertuxkart.sourceforge.net/"
arch=('any')
license=('custom:Unknown')
depends=('supertuxkart>=0.7')
makedepends=('unzip')
source=("http://downloads.sourceforge.net/project/supertuxkart/SuperTuxKart Add-ons/Add-ons 0.7/karts_addons_0.7.zip")
md5sums=('141165fc0a894c1216257261d3d54a1c')
package() {
install -d $pkgdir/usr/share/games/supertuxkart/
mv $srcdir/data $pkgdir/usr/share/games/supertuxkart/
}
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=supertuxkart-addons-tracks
pkgver=0.7
pkgrel=1
pkgdesc="Additional tracks for SuperTuxKart."
url="http://supertuxkart.sourceforge.net/"
arch=('any')
license=('custom:Unknown')
depends=('supertuxkart>=0.7')
makedepends=('unzip')
conflicts=('supertuxkart-svn')
source=("http://download.tuxfamily.org/stkaddons/file/tracks/Art museum [Irrlicht-0.7].zip"
"http://download.tuxfamily.org/stkaddons/file/tracks/Volcano.zip")
md5sums=('ad80c6287015e0f41869572780f15fd6'
'3a14013fe0b85d95be59e12e975cbf5e')
_addondir=$pkgdir/usr/share/games/supertuxkart/data/tracks
build() {
cd $srcdir
}
package() {
cd $srcdir
IFS=$'\n' # Needed for 'find' to work properly, don't know why.
for addonfile in $(find -type l -printf "%f\n")
do
addon=${addonfile:0:${#addonfile}-4}
install -d $_addondir/$addon
cd $_addondir/$addon
cp $srcdir/$addonfile $_addondir/$addon/
unzip $addonfile
rm $addonfile
if [ $(find -maxdepth 1 -type f -printf "%f\n" | wc -l) == 0 ] ; then
# Content was in a subfolder.
mv * ../
rmdir $_addondir/$addon
fi
done
# Revome folders which are not actual add-ons:
rm -rf $_addondir/_*
}
......@@ -8,23 +8,27 @@ source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=supertuxkart
_pkgname=SuperTuxKart
pkgver=0.7
pkgrel=4
pkgver=0.7.1b
_pkgver=0.7.1
pkgrel=1
pkgdesc="Kart racing game featuring Tux and friends."
url="http://supertuxkart.sourceforge.net/"
arch=('i686' 'x86_64')
license=('GPL3' 'GPL2' 'CCPL-by' 'CCPL-by-sa' 'custom:Creative Commons Sampling Plus 1.0' 'custom:FreeArt License' 'custom:SoundSnap license' 'custom:Public Domain')
depends=('enet' 'irrlicht>=1.7' 'libgl' 'libogg' 'libvorbis' 'openal')
depends=('enet' 'irrlicht' 'libgl' 'libogg' 'libvorbis' 'openal')
conflicts=('supertuxkart-svn')
changelog=ChangeLog
source=(http://downloads.sourceforge.net/project/$pkgname/$_pkgname/$pkgver/$pkgname-$pkgver-src.tar.bz2)
md5sums=('2806f271e4d37fee5ad8ca166e1ad489')
source=(http://downloads.sourceforge.net/project/$pkgname/$_pkgname/$_pkgver/$pkgname-$pkgver-src.tar.bz2)
md5sums=('8538d147d3178035be6e1519a509e4f5')
build() {
cd $srcdir/$pkgname-$pkgver
LDFLAGS="-lpng -ljpeg" \
LIBS="-lbz2" \
./configure \
--prefix=/usr
--prefix=/usr \
--datadir=/usr/share
make
}
......@@ -33,4 +37,10 @@ package() {
cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install
# Add executable link from /usr/bin
mkdir -p $pkgdir/usr/bin/
echo "#!/bin/bash" > $pkgname
echo "/usr/games/$pkgname" >> $pkgname
chmod +x ./$pkgname
}
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