[arch-commits] Commit in minetest/trunk (PKGBUILD minetest.install)
Laurent Carlier
lcarlier at nymeria.archlinux.org
Sun Jun 2 12:00:21 UTC 2013
Date: Sunday, June 2, 2013 @ 14:00:20
Author: lcarlier
Revision: 92173
upgpkg: minetest 0.4.6-1
Moved from AUR and updated/cleanup
Added:
minetest/trunk/minetest.install
Modified:
minetest/trunk/PKGBUILD
------------------+
PKGBUILD | 5 +++--
minetest.install | 17 +++++++++++++++++
2 files changed, 20 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-06-02 11:16:42 UTC (rev 92172)
+++ PKGBUILD 2013-06-02 12:00:20 UTC (rev 92173)
@@ -9,8 +9,9 @@
arch=('i686' 'x86_64')
url='http://minetest.net/'
license=('GPL')
-depends=('sqlite' 'libgl' 'libxxf86vm' 'openal' 'libvorbis' 'gcc-libs' 'hicolor-icon-theme')
+depends=('sqlite' 'libgl' 'libxxf86vm' 'openal' 'libvorbis' 'curl' 'hicolor-icon-theme')
makedepends=('cmake' 'irrlicht' 'mesa' 'libpng' 'zlib')
+install=minetest.install
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/minetest/${pkgname}/tarball/${pkgver}
${pkgname}_game-${pkgver}.tar.gz::https://github.com/minetest/${pkgname}_game/tarball/${pkgver}
${pkgname}_common-${pkgver}.tar.gz::https://github.com/minetest/common/tarball/${pkgver})
@@ -31,7 +32,7 @@
make DESTDIR="$pkgdir" install
mv -v "$srcdir"/minetest-minetest_game-* "$pkgdir"/usr/share/minetest/games/minetest
- mv -v "$srcdir"/common-* "$pkgdir"/usr/share/minetest/games/common
+ mv -v "$srcdir"/minetest-common-* "$pkgdir"/usr/share/minetest/games/common
# small cleanup
rm "$pkgdir"/usr/share/minetest/games/{minetest,common}/.gitignore
Added: minetest.install
===================================================================
--- minetest.install (rev 0)
+++ minetest.install 2013-06-02 12:00:20 UTC (rev 92173)
@@ -0,0 +1,17 @@
+post_install() {
+ gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor > /dev/null 2>&1
+ update-desktop-database > /dev/null 2>&1
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ update-desktop-database > /dev/null 2>&1
+}
+
+post_remove() {
+ gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor > /dev/null 2>&1
+ update-desktop-database > /dev/null 2>&1
+}
More information about the arch-commits
mailing list