summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosip Ponjavić2015-10-30 21:16:13 +0100
committerJosip Ponjavić2015-10-30 21:16:13 +0100
commite24a25a9640220f520603d3d6ac8c698d484a538 (patch)
tree4df1a49f152dc6a3e2cd0f411202c75c10002670
downloadaur-e24a25a9640220f520603d3d6ac8c698d484a538.tar.gz
Initial import
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD41
-rw-r--r--tbe.install12
3 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1b39a5c2cf8
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = tbe
+ pkgdesc = The Butterfly Effect is a physics-based puzzle game
+ pkgver = 0.9.2.1
+ pkgrel = 1
+ url = https://github.com/kaa-ching/tbe
+ install = tbe.install
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ makedepends = cmake
+ depends = qt4
+ source = tbe-0.9.2.1.tar.gz::https://github.com/kaa-ching/tbe/archive/v0.9.2.1.tar.gz
+ sha256sums = afffea8df53c5e805a79963e0358fd1d6e8fdc735bbb4d4315cd4d1571c244b3
+
+pkgname = tbe
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f732ddd694d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Josip Ponjavic <josipponjavic at gmail dot com>
+# Contributor:
+
+pkgname=tbe
+pkgver=0.9.2.1
+pkgrel=1
+pkgdesc="The Butterfly Effect is a physics-based puzzle game"
+arch=('i686' 'x86_64')
+url="https://github.com/kaa-ching/tbe"
+license=('GPL2')
+depends=('qt4')
+makedepends=('cmake')
+install='tbe.install'
+source=("tbe-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
+sha256sums=('afffea8df53c5e805a79963e0358fd1d6e8fdc735bbb4d4315cd4d1571c244b3')
+
+prepare() {
+ cd tbe-${pkgver}
+ sed -i 's|games)|bin)|' CMakeLists.txt
+ sed -i 's|games/tbe|tbe|' CMakeLists.txt
+ sed -i 's|BINARY_DIRECTORY+"/../share/games|"/usr/share|' src/tbe_paths.h
+}
+
+build() {
+ cd tbe-${pkgver}
+ pushd i18n
+ ./tbe_levels_i18n.sh
+ popd
+ cmake \
+ -DWITH_DOCS=ON \
+ -DBUILD_SHARED_LIBS=OFF \
+ -DQT_QMAKE_EXECUTABLE=qmake-qt4 \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release
+ make
+}
+
+package() {
+ cd tbe-${pkgver}
+ make DESTDIR="${pkgdir}/" install
+}
diff --git a/tbe.install b/tbe.install
new file mode 100644
index 00000000000..4f1d6880a66
--- /dev/null
+++ b/tbe.install
@@ -0,0 +1,12 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+} \ No newline at end of file