A new user interface for you! Read more...

File PKGBUILD of Package supertux2

# Maintainer: Jacob Burroughs <maths22@gmail.com>
# Original Maintainer: Hakim <acrox999 at gmail dot com>
# Contributor: Patrick Bartels <p4ddy.b@gmail.com>

pkgname=supertux2
pkgver=0.5.1
pkgrel=1
pkgdesc="A classic 2D jump'n run sidescroller game in a style similar to the original SuperMario game"
url='http://supertux.lethargik.org/'
license=(GPL)
arch=(i686 x86_64)
depends=(sdl2_image openal libvorbis curl boost glew)
makedepends=(git cmake)
conflicts=(supertux)
provides=(supertux)
source=('SuperTux-v0.5.1-Source.tar.gz')
sha512sums=('1a841cec9b71ff482aa271ec94f0563052ed33c65b26958c15c818f897f184356605a115abb70bdb8302f8cdb6e6107cf336790c3929cbc7e3dc78d31b4e2c8a')

#pkgver() {
#  cd "${srcdir}/supertux"
#  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
#}

prepare() {
  cd "${srcdir}/SuperTux-v0.5.1-Source"

  sed -i '/curl\/types.h/d' src/addon/addon_manager.cpp
  sed -i '1i#include <cstddef>' src/supertux/screen_manager.hpp  
}

build() {
  cd "${srcdir}/SuperTux-v0.5.1-Source"

  cmake . \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DINSTALL_SUBDIR_BIN=bin

  make
}

package() {
  cd SuperTux-v0.5.1-Source

  make DESTDIR="${pkgdir}/" install
}