2011-01-09 09:10:01 +08:00
|
|
|
#
|
|
|
|
# Games Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
|
|
|
|
|
|
|
|
pkgname=frogatto
|
2011-12-18 19:43:58 +08:00
|
|
|
pkgver=1.2
|
2012-02-18 03:30:41 +08:00
|
|
|
pkgrel=2
|
2011-01-09 09:10:01 +08:00
|
|
|
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")
|
2011-07-11 23:18:49 +08:00
|
|
|
depends=('boost-libs' 'glew' 'icu' 'libgl' 'libpng' 'mesa' 'sdl' 'sdl_image' 'sdl_mixer' 'sdl_ttf')
|
|
|
|
makedepends=('boost')
|
2012-03-07 19:00:46 +08:00
|
|
|
categories=('games')
|
2011-12-18 19:43:58 +08:00
|
|
|
source=("$pkgname.zip::https://github.com/$pkgname/$pkgname/zipball/${pkgver}_stable"
|
2011-01-09 09:10:01 +08:00
|
|
|
"$pkgname.desktop")
|
2011-12-18 19:43:58 +08:00
|
|
|
md5sums=('9dcf7f30111c5d8628f7699cf6b6cbff'
|
2011-01-09 09:10:01 +08:00
|
|
|
'e31563b04748a39292a59aaad633ff58')
|
|
|
|
|
|
|
|
build() {
|
2011-12-18 19:43:58 +08:00
|
|
|
cd $srcdir/$pkgname-$pkgname-*
|
2011-01-09 09:10:01 +08:00
|
|
|
|
|
|
|
sed -i 's/ccache //g' Makefile
|
|
|
|
sed -i 's/-lprofiler//g' Makefile
|
2011-07-11 23:18:49 +08:00
|
|
|
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
|
2011-01-09 09:10:01 +08:00
|
|
|
make game server
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2011-12-18 19:43:58 +08:00
|
|
|
cd $srcdir/$pkgname-$pkgname-*
|
2011-01-09 09:10:01 +08:00
|
|
|
|
|
|
|
# Binaries:
|
2011-07-11 23:18:49 +08:00
|
|
|
install -Dm755 game $pkgdir/usr/share/$pkgname/game
|
|
|
|
install -Dm755 server $pkgdir/usr/share/$pkgname/server
|
2011-01-09 09:10:01 +08:00
|
|
|
|
|
|
|
# Data:
|
2011-07-11 23:18:49 +08:00
|
|
|
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
|
2011-01-09 09:10:01 +08:00
|
|
|
|
|
|
|
# License:
|
|
|
|
install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
|
|
|
|
|
|
|
|
# Desktop integration and execution script:
|
|
|
|
cd $srcdir
|
|
|
|
install -Dm644 $pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
|
2011-04-07 23:08:08 +08:00
|
|
|
}
|