desktop/frogatto/PKGBUILD

60 lines
1.9 KiB
Bash
Raw Normal View History

# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
pkgname=frogatto
2014-06-12 21:19:05 +08:00
pkgver=1.3.1
2013-10-18 13:52:10 +08:00
pkgrel=1
pkgdesc="An old-school 2D platformer game, starring a certain quixotic frog."
2014-06-12 21:19:05 +08:00
arch=('x86_64')
url="http://www.frogatto.com"
license=("custom: GPL3 code, non-free data")
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')
2014-06-12 21:19:05 +08:00
source=("https://github.com/$pkgname/$pkgname/archive/$pkgver.tar.gz"
"$pkgname.desktop")
2014-06-12 21:19:05 +08:00
md5sums=('f3206fbe1395ea2878092fbd4ed2c591'
'e31563b04748a39292a59aaad633ff58')
build() {
2014-06-12 21:19:05 +08:00
cd $pkgname-$pkgver
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
}
package() {
2014-06-12 21:19:05 +08:00
cd $pkgname-$pkgver
# Binaries:
install -Dm755 game $pkgdir/usr/share/$pkgname/game
install -Dm755 server $pkgdir/usr/share/$pkgname/server
# Data:
mkdir -p $pkgdir/usr/share/frogatto/
cp -r data $pkgdir/usr/share/frogatto/
cp -r images $pkgdir/usr/share/frogatto/
2013-10-18 13:52:10 +08:00
cp -r modules $pkgdir/usr/share/frogatto/
cp -r music $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 -Dm644 $pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
}