]> saetta.ns0.it Git - msys2/commitdiff
gcr: aggiunti i file install.
authorAndrea Zagli <azagli@libero.it>
Tue, 17 Feb 2015 20:11:33 +0000 (21:11 +0100)
committerAndrea Zagli <azagli@libero.it>
Tue, 17 Feb 2015 20:11:33 +0000 (21:11 +0100)
packages/mingw-w64-gcr/PKGBUILD
packages/mingw-w64-gcr/gcr-i686.install [new file with mode: 0644]
packages/mingw-w64-gcr/gcr-x86_64.install [new file with mode: 0644]

index a97e3067c729fbd78925a5d6fab1dcfab70ecdbf..f2b3555eddb8f8706e6a6a59966c4f09ebdf4d14 100644 (file)
@@ -3,7 +3,7 @@
 _realname=gcr
 pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
 pkgver=3.14.0
-pkgrel=1
+pkgrel=2
 arch=('any')
 pkgdesc="Library for Crypto UI related task (mingw-w64)"
 depends=("${MINGW_PACKAGE_PREFIX}-gtk3"
@@ -19,6 +19,7 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
 options=('strip' 'staticlibs')
 license=("LGPL 2.1")
 url="http://www.gnome.org/"
+install=${_realname}-${CARCH}.install
 source=(http://ftp.gnome.org/pub/gnome/sources/${_realname}/${pkgver:0:4}/${_realname}-$pkgver.tar.xz
         001-3.14.0.patch)
 sha256sums=('2a2231147a01e2061f57fa9ca77557ff97bc6ceab028cee5528079f4b2fca63d'
diff --git a/packages/mingw-w64-gcr/gcr-i686.install b/packages/mingw-w64-gcr/gcr-i686.install
new file mode 100644 (file)
index 0000000..e4ed9a7
--- /dev/null
@@ -0,0 +1,13 @@
+post_install() {
+    mingw32/bin/update-mime-database /mingw32/share/mime/
+    mingw32/bin/gtk-update-icon-cache -f -t /mingw32/share/icons/hicolor
+    mingw32/bin/glib-compile-schemas /mingw32/share/glib-2.0/schemas
+}
+
+post_upgrade() {
+    post_install $1
+}
+
+post_remove() {
+    post_install $1
+}
diff --git a/packages/mingw-w64-gcr/gcr-x86_64.install b/packages/mingw-w64-gcr/gcr-x86_64.install
new file mode 100644 (file)
index 0000000..377bb54
--- /dev/null
@@ -0,0 +1,13 @@
+post_install() {
+    mingw64/bin/update-mime-database /mingw64/share/mime/
+    mingw64/bin/gtk-update-icon-cache -f -t /mingw64/share/icons/hicolor
+    mingw64/bin/glib-compile-schemas /mingw64/share/glib-2.0/schemas
+}
+
+post_upgrade() {
+    post_install $1
+}
+
+post_remove() {
+    post_install $1
+}