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

Frogatto upgraded to its 1.1.1 version.

parent e0575940
......@@ -3,22 +3,18 @@
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=frogatto
pkgver=1.1
pkgver=1.1.1
pkgrel=1
pkgdesc="An old-school 2D platformer game, starring a certain quixotic frog."
arch=('i686' 'x86_64')
url="http://www.frogatto.com"
license=("custom: GPL3 code, non-free data")
depends=('boost' 'glew' 'icu' 'libgl' 'libpng' 'mesa' 'sdl' 'sdl_image' 'sdl_mixer' 'sdl_ttf')
depends=('boost-libs' 'glew' 'icu' 'libgl' 'libpng' 'mesa' 'sdl' 'sdl_image' 'sdl_mixer' 'sdl_ttf')
makedepends=('boost')
source=("http://www.frogatto.com/files/$pkgname-$pkgver.tar.bz2"
"$pkgname.sh"
"$pkgname.desktop")
md5sums=('8c01c8a1d7ecf820a682eb684d8bf739'
'9ed2c9ea59e95fe3c0b3ad49e58f8890'
md5sums=('bf5a2ee4c3254a424766895ff250758b'
'e31563b04748a39292a59aaad633ff58')
build() {
......@@ -26,6 +22,10 @@ build() {
sed -i 's/ccache //g' Makefile
sed -i 's/-lprofiler//g' Makefile
sed -i 's/-lboost_regex-mt/-lboost_regex/g' Makefile
sed -i 's/-lboost_system-mt/-lboost_system/g' Makefile
sed -i 's/-lboost_thread-mt/-lboost_thread/g' Makefile
sed -i 's/-lboost_iostreams-mt/-lboost_iostreams/g' Makefile
make game server
}
......@@ -33,23 +33,29 @@ package() {
cd $srcdir/$pkgname-$pkgver
# Binaries:
install -Dm755 game $pkgdir/opt/$pkgname/game
install -Dm755 server $pkgdir/opt/$pkgname/server
install -Dm755 game $pkgdir/usr/share/$pkgname/game
install -Dm755 server $pkgdir/usr/share/$pkgname/server
# Data:
mkdir -p $pkgdir/opt/frogatto/
cp -r data $pkgdir/opt/frogatto/
cp -r images $pkgdir/opt/frogatto/
cp -r music $pkgdir/opt/frogatto/
cp -r sounds $pkgdir/opt/frogatto/
install -D -m644 FreeMono.ttf $pkgdir/opt/frogatto/FreeMono.ttf
install -D -m644 DejaVuSans.ttf $pkgdir/opt/frogatto/DejaVuSans.ttf
mkdir -p $pkgdir/usr/share/frogatto/
cp -r data $pkgdir/usr/share/frogatto/
cp -r images $pkgdir/usr/share/frogatto/
cp -r music $pkgdir/usr/share/frogatto/
cp -r sounds $pkgdir/usr/share/frogatto/
install -D -m644 FreeMono.ttf $pkgdir/usr/share/frogatto/FreeMono.ttf
install -D -m644 DejaVuSans.ttf $pkgdir/usr/share/frogatto/DejaVuSans.ttf
# Run script.
mkdir -p $pkgdir/usr/bin
echo "#!/bin/sh" > $pkgdir/usr/bin/$pkgname
echo "cd /usr/share/frogatto" >> $pkgdir/usr/bin/$pkgname
echo 'exec /usr/share/frogatto/game $*' >> $pkgdir/usr/bin/$pkgname
chmod +x $pkgdir/usr/bin/$pkgname
# License:
install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
# Desktop integration and execution script:
cd $srcdir
install -DT -m755 $pkgname.sh $pkgdir/usr/bin/$pkgname
install -Dm644 $pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
}
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