blob: 5a7561b7f6e07b75f468e400dc80abcb5f2c93e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# $Id: PKGBUILD 9321 2010-01-25 01:55:48Z ibiru $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Eric Belanger <eric.archlinux.org>
# Contributor: Fabio Scotoni <CCuleX.gmail.com>
pkgname=extremetuxracer
pkgver=0.4
pkgrel=2
pkgdesc="Downhill racing game starring Tux"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.extremetuxracer.com"
license=('GPL')
depends=('sdl_mixer' 'tcl>=8.5.0' 'mesa' 'libpng>=1.4.0' 'freetype2' 'libxi' 'libxmu')
conflicts=('ppracer' 'etracer')
replaces=('ppracer' 'etracer')
source=(http://downloads.sourceforge.net/extremetuxracer/extremetuxracer-$pkgver.tar.gz \
$pkgname.png $pkgname.desktop libpng14.patch)
md5sums=('6830eb4e1ca7c5a541f286ded3853f9f'
'a188e4ce61d0376fa42059e13157c5d1'
'429974a3d7f4640073e8fbfb4f0f45d2'
'0c16eb309df6413397cd886f63361fcc')
build() {
cd ${srcdir}/extremetuxracer-$pkgver
patch -Np1 -i ${srcdir}/libpng14.patch || return 1
sed -i -e 's/libpng12/libpng14/g' configure || return 1
./configure --prefix=/usr
make || return 1
make DESTDIR=${pkgdir} install || return 1
# Install icon and desktop file
install -D -m644 ${srcdir}/${pkgname}.desktop \
${pkgdir}/usr/share/applications/${pkgname}.desktop || return 1
install -D -m644 ${srcdir}/${pkgname}.png \
${pkgdir}/usr/share/pixmaps/${pkgname}.png || return 1
}
|