summaryrefslogtreecommitdiff
path: root/extra/gucharmap
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-04-25 00:01:35 +0000
committerroot <root@rshg054.dnsready.net>2012-04-25 00:01:35 +0000
commit98bf2ac3fdd6f7bcb6ce45c932fc13c07fecc03f (patch)
tree00d9cdbfdc8ef5d7a4a7159a8c6439008509e662 /extra/gucharmap
parent9988621f899d7d4ae5fd0a4a32a4ba3abc5a527d (diff)
Wed Apr 25 00:01:35 UTC 2012
Diffstat (limited to 'extra/gucharmap')
-rw-r--r--extra/gucharmap/PKGBUILD25
-rw-r--r--extra/gucharmap/gucharmap.install15
2 files changed, 16 insertions, 24 deletions
diff --git a/extra/gucharmap/PKGBUILD b/extra/gucharmap/PKGBUILD
index 900ac4e94..a2a824288 100644
--- a/extra/gucharmap/PKGBUILD
+++ b/extra/gucharmap/PKGBUILD
@@ -1,33 +1,30 @@
-# $Id: PKGBUILD 142885 2011-11-17 18:34:47Z ibiru $
-# Maintainer: Jan De Groot <jgc@archlinux.org>
+# $Id: PKGBUILD 156882 2012-04-23 09:08:14Z ibiru $
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
+# Contributor: Jan De Groot <jgc@archlinux.org>
pkgname=gucharmap
-pkgver=3.2.2
+pkgver=3.4.1.1
pkgrel=1
pkgdesc="Gnome Unicode Charmap"
arch=('i686' 'x86_64')
license=('GPL')
url="http://www.gnome.org"
-depends=('gconf' 'hicolor-icon-theme')
+depends=('dconf' 'gtk3' 'hicolor-icon-theme')
makedepends=('gtk-doc' 'intltool' 'gobject-introspection')
options=('!libtool' '!emptydirs')
install=gucharmap.install
-source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz)
-sha256sums=('da1e422d387ff4df8bfb61e8a340483f88b0d23e4309a776848dbeb4093a5a21')
+source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver:0:3}/$pkgname-$pkgver.tar.xz)
+sha256sums=('52ea80e9e5f01232801dd24f7eb5c70eb36e7a85e429ad9113e8b71234d94c62')
build() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd $pkgname-$pkgver
./configure --prefix=/usr --sysconfdir=/etc \
--localstatedir=/var --disable-static \
- --disable-scrollkeeper --enable-introspection
+ --disable-schemas-compile --enable-introspection
make
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
- make -j1 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="$pkgdir" install
-
- install -m755 -d "$pkgdir/usr/share/gconf/schemas"
- gconf-merge-schema "$pkgdir/usr/share/gconf/schemas/$pkgname.schemas" --domain gucharmap $pkgdir/etc/gconf/schemas/*.schemas
- rm -f $pkgdir/etc/gconf/schemas/*.schemas
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
}
diff --git a/extra/gucharmap/gucharmap.install b/extra/gucharmap/gucharmap.install
index 4de3253f6..0a9ddf4c2 100644
--- a/extra/gucharmap/gucharmap.install
+++ b/extra/gucharmap/gucharmap.install
@@ -1,22 +1,17 @@
-pkgname=gucharmap
-
post_install() {
- usr/sbin/gconfpkg --install ${pkgname}
+ glib-compile-schemas /usr/share/glib-2.0/schemas
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}
pre_upgrade() {
- pre_remove $1
+ (( $(vercmp $2 3.3) < 0 )) && gconfpkg --uninstall gucharmap
+ return 0
}
post_upgrade() {
- post_install $1
-}
-
-pre_remove() {
- usr/sbin/gconfpkg --uninstall ${pkgname}
+ post_install
}
post_remove() {
- gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+ post_install
}