summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Dermont2015-06-08 20:06:14 +0200
committerKrzysztof Dermont2015-06-08 20:06:14 +0200
commitb2148934fe74dd78d71664e62353442fcb28c7c6 (patch)
tree6c4ff527d4ba6886741314409e59a6364a32cd18
downloadaur-b2148934fe74dd78d71664e62353442fcb28c7c6.tar.gz
Initial import
-rw-r--r--.SRCINFO31
-rw-r--r--PKGBUILD27
-rw-r--r--colobot.install11
3 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..47a54ec6cd3f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,31 @@
+pkgbase = colobot-gold
+ pkgdesc = Colobot GOLD is a real-time strategy game with programmable bots.
+ pkgver = 0.1.4_alpha
+ pkgrel = 4
+ url = http://colobot.info
+ install = colobot.install
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = cmake
+ makedepends = boost
+ depends = libsndfile
+ depends = glew
+ depends = sdl
+ depends = libvorbis
+ depends = libpng
+ depends = libogg
+ depends = gettext
+ depends = libgl
+ depends = sdl_image
+ depends = sdl_ttf
+ depends = boost-libs
+ depends = openal
+ depends = colobot-gold-data=0.1.4_alpha
+ depends = physfs
+ source = https://github.com/colobot/colobot/archive/colobot-gold-0.1.4-alpha.zip
+ md5sums = 94779bf599298503c0338948c89a544a
+ sha1sums = c4b9d535e971db71930e57ea1ee3e716e25b284e
+
+pkgname = colobot-gold
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..9d9267d50e7d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+pkgname=colobot-gold
+pkgver=0.1.4_alpha
+__ver=0.1.4-alpha
+pkgrel=4
+pkgdesc="Colobot GOLD is a real-time strategy game with programmable bots."
+arch=('i686' 'x86_64')
+url="http://colobot.info"
+license=('GPL3')
+depends=('libsndfile' 'glew' 'sdl' 'libvorbis' 'libpng' 'libogg' 'gettext' 'libgl' 'sdl_image' 'sdl_ttf' 'boost-libs' 'openal' "colobot-gold-data=$pkgver" 'physfs')
+makedepends=('cmake' 'boost')
+source=("https://github.com/colobot/colobot/archive/colobot-gold-$__ver.zip")
+md5sums=('94779bf599298503c0338948c89a544a')
+sha1sums=('c4b9d535e971db71930e57ea1ee3e716e25b284e')
+_archive_dir="colobot-colobot-gold-$__ver"
+install=colobot.install
+
+build() {
+ mkdir -p "$srcdir/$_archive_dir/build"
+ cd "$srcdir/$_archive_dir/build"
+ cmake "$srcdir/$_archive_dir" -DCMAKE_BUILD_TYPE=release -DOPENAL_SOUND=1 -DASSERTS=1 -DDEV_BUILD=0 -DCMAKE_INSTALL_PREFIX="/usr" -DCOLOBOT_INSTALL_BIN_DIR="/usr/bin"
+ make
+}
+
+package() {
+ cd "$srcdir/$_archive_dir/build"
+ make DESTDIR="$pkgdir/" install
+}
diff --git a/colobot.install b/colobot.install
new file mode 100644
index 000000000000..e9751d2d39ae
--- /dev/null
+++ b/colobot.install
@@ -0,0 +1,11 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ update-desktop-database -q
+}