diff options
author | Xiao-Long Chen | 2015-06-08 21:51:39 -0400 |
---|---|---|
committer | Xiao-Long Chen | 2015-06-08 21:51:39 -0400 |
commit | e6566c2c9148ddc70831f98372bf0d6deb08e588 (patch) | |
tree | a5882b447594e309f98cabc972cdcdd242e36240 | |
download | aur-e6566c2c9148ddc70831f98372bf0d6deb08e588.tar.gz |
Import from old AUR
-rw-r--r-- | .SRCINFO | 26 | ||||
-rw-r--r-- | PKGBUILD | 45 |
2 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d6baf9733006 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,26 @@ +# Generated by makepkg 4.2.1 +# Fri Mar 27 02:16:46 UTC 2015 +pkgbase = supertux-git + pkgdesc = A classic 2D jump'n run sidescroller game in a style similar to the original SuperMario game + pkgver = 6274.25aacba + pkgrel = 1 + url = http://supertux.lethargik.org/ + arch = i686 + arch = x86_64 + license = GPL + makedepends = git + makedepends = cmake + depends = sdl2_image + depends = physfs + depends = openal + depends = libvorbis + depends = curl + depends = boost + depends = glew + provides = supertux + conflicts = supertux + source = git+https://github.com/SuperTux/supertux + sha512sums = SKIP + +pkgname = supertux-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3baea57d78f2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to> +# Original Maintainer: Hakim <acrox999 at gmail dot com> +# Contributor: Patrick Bartels <p4ddy.b@gmail.com> + +pkgname=supertux-git +pkgver=6274.25aacba +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 physfs openal libvorbis curl boost glew) +makedepends=(git cmake) +conflicts=(supertux) +provides=(supertux) +source=('git+https://github.com/SuperTux/supertux') +sha512sums=('SKIP') + +pkgver() { + cd supertux + echo $(git rev-list --count master).$(git rev-parse --short master) +} + +prepare() { + cd supertux + + sed -i '/curl\/types.h/d' src/addon/addon_manager.cpp + sed -i '1i#include <cstddef>' src/supertux/screen_manager.hpp +} + +build() { + cd supertux + + cmake . \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DINSTALL_SUBDIR_BIN=bin + + make +} + +package() { + cd supertux + + make DESTDIR="${pkgdir}/" install +} |