summaryrefslogtreecommitdiff
path: root/community/supertux/PKGBUILD
blob: 3a9c88b88baa67e52c131556b9b853763c4c2044 (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
# $Id: PKGBUILD 78943 2012-10-27 23:45:45Z ebelanger $
# Contributor: Jaroslaw Swierczynski <swiergot@aur.archlinux.org>
# Contributor: Eric Bélanger <eric@archlinux.org>
# Contributor: vande198
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=supertux
pkgver=0.3.3
pkgrel=7
pkgdesc="A classic 2D jump'n run sidescroller game in a style similar to the original SuperMario games"
arch=('i686' 'x86_64')
url="http://super-tux.sourceforge.net/"
license=('GPL')
depends=('sdl_image' 'curl' 'physfs' 'openal' 'libvorbis' 'glew')
makedepends=('cmake' 'boost' 'mesa')
source=(http://download.berlios.de/supertux/${pkgname}-${pkgver}.tar.bz2 
        supertux2-0.3.3-squirrel-gcc47.patch)
md5sums=('f3f803e629ee51a9de0b366a036e393d'
         'eb06315514be4f200428f14b927beb66')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  patch -p1 -i "${srcdir}/supertux2-0.3.3-squirrel-gcc47.patch"
  sed -i '1i#include <cstddef>' src/supertux/screen_manager.hpp
  sed -i '/types\.h/d' src/addon/addon_manager.cpp
  cmake -D CMAKE_INSTALL_PREFIX=/usr -D INSTALL_SUBDIR_BIN=bin .
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  make DESTDIR="${pkgdir}" install
}