summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorjose17112016-01-18 12:58:01 +0100
committerjose17112016-01-18 12:58:01 +0100
commit36081cff53c44584c1fbeb404380cfb6c358b549 (patch)
tree02bb17262f5a95663b5199a706b7be5b933e5ce5 /PKGBUILD
downloadaur-motogt.tar.gz
adopted from aur3
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD61
1 files changed, 61 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..65db50330f7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,61 @@
+# Maintainer: Jose Riha <jose1711 gmail com>
+# Contributor: archtux <antonio dot arias99999 at gmail dot com>
+
+pkgname=motogt
+pkgver=20110505
+pkgrel=3
+pkgdesc="MotoGT is a 2D top-viewed game where you drive a MotoGP bike"
+arch=('i686' 'x86_64')
+url="http://motogt.sourceforge.net/"
+license=('GPL2')
+depends=('freeglut' 'libpng' 'sfml1.6')
+source=(http://prdownloads.sourceforge.net/motogt/MotoGT-$pkgver.zip
+ motogt
+ motogt-init.patch
+ motogt-png15.patch
+ motogt-savedir.patch
+ MotoGT.desktop
+ MotoGT.png)
+md5sums=('5fa3a8ba52ea75bc46f011906ddc6747'
+ 'fe654d2910156d66efce53f82a1add08'
+ '70eee66a05be2b7bf799bbf392e10fc6'
+ 'b653c830225c2fe5abccd6b7134a2e51'
+ '03f67136094c2eafea5daa05ea7f44b9'
+ '969b607bd91ebf06f2efd6e0d6595a28'
+ '7d426217b802a5691e568134cef89160')
+
+
+build() {
+ cd $srcdir
+
+ patch -p0 -i ../motogt-init.patch
+ patch -p0 -i ../motogt-png15.patch
+ patch -p0 -i ../motogt-savedir.patch
+
+ # Patches (Add glut, OpenGL and use sfml1.6 libraries in Makefile.lnx)
+ cd MotoGT
+ sed -i 's%ffast-math%& -I/usr/include/sfml-1.6%' src/Makefile.lnx
+ sed -i '4d' src/Makefile.lnx
+ #sed -i '4iLIBS= -s -lglut -lGL -lpng -lsfml1.6-window -lsfml1.6-graphics -lsfml1.6-system -lsfml1.6-audio' src/Makefile.lnx
+ sed -i '4iLIBS= -s -lglut -lGL -lpng -lsfml-window-1.6 -lsfml-graphics-1.6 -lsfml-system-1.6 -lsfml-audio-1.6' src/Makefile.lnx
+
+ # Build
+ make
+}
+
+package() {
+ cd $srcdir/MotoGT
+
+ # Installation
+ mkdir -p $pkgdir/usr/share/MotoGT
+ install -Dm755 MotoGT.bin $pkgdir/usr/share/MotoGT/MotoGT.bin
+ cp -R data/ data_low/ $pkgdir/usr/share/MotoGT
+
+ # Start file
+ cd $startdir
+ install -Dm755 motogt $pkgdir/usr/bin/motogt
+
+ # Desktop icon
+ install -Dm644 MotoGT.png $pkgdir/usr/share/pixmaps/MotoGT.png
+ install -Dm644 MotoGT.desktop $pkgdir/usr/share/applications/MotoGT.desktop
+}