summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosip2016-04-28 14:15:38 +0200
committerJosip2016-04-28 14:15:38 +0200
commit25331726bd990a59308bbda7cc284cedcd5e34b7 (patch)
tree7d34c754ede105cb6faa184ce92499d1ced41c7e
parent6628833c2f7e85043b637c51215c2a57719d014d (diff)
downloadaur-25331726bd990a59308bbda7cc284cedcd5e34b7.tar.gz
Use hooks...
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD37
-rw-r--r--tbe.install12
3 files changed, 20 insertions, 34 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6ce2084d1ae..3a3654b570d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,8 @@
pkgbase = tbe
pkgdesc = The Butterfly Effect is a physics-based puzzle game
pkgver = 0.9.2.1
- pkgrel = 2
- url = https://github.com/kaa-ching/tbe
- install = tbe.install
+ pkgrel = 3
+ url = http://the-butterfly-effect.org/
arch = i686
arch = x86_64
license = GPL2
diff --git a/PKGBUILD b/PKGBUILD
index 0b84eb4f312..f7ccb44b3f5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,37 +3,36 @@
pkgname=tbe
pkgver=0.9.2.1
-pkgrel=2
+pkgrel=3
pkgdesc="The Butterfly Effect is a physics-based puzzle game"
arch=('i686' 'x86_64')
-url="https://github.com/kaa-ching/tbe"
+url='http://the-butterfly-effect.org/'
license=('GPL2')
depends=('qt4')
makedepends=('cmake')
-install='tbe.install'
-source=("tbe-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
+source=("tbe-${pkgver}.tar.gz::https://github.com/kaa-ching/tbe/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
+ 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}/i18n
- ./tbe_levels_i18n.sh && cd ..
- cmake \
- -DWITH_DOCS=ON \
- -DBUILD_SHARED_LIBS=OFF \
- -DQT_QMAKE_EXECUTABLE=qmake-qt4 \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=Release
- make
+ cd tbe-${pkgver}/i18n
+ ./tbe_levels_i18n.sh && cd ..
+ 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
+ cd tbe-${pkgver}
+ make DESTDIR="${pkgdir}/" install
}
diff --git a/tbe.install b/tbe.install
deleted file mode 100644
index 4f1d6880a66..00000000000
--- a/tbe.install
+++ /dev/null
@@ -1,12 +0,0 @@
-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