wok-next view gvfs/receipt @ rev 17290

gvfs: (re-)compile glib schemas on install and on remove.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 28 17:37:52 2014 +0200 (2014-10-28)
parents 96fd065ed4ea
children 124c3a7da04f
line source
1 # SliTaz package receipt.
3 PACKAGE="gvfs"
4 VERSION="1.22.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Userspace virtual filesystem designed to work with gio"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://www.gnome.org/"
11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
12 SUGGESTED="gvfs-afp gvfs-archive gvfs-cdda gvfs-fuse gvfs-gphoto2 gvfs-http \
13 gvfs-libmtp gvfs-obexftp gvfs-smb gvfs-udisks2"
15 DEPENDS="dbus glib glibc-base libffi libgio pcre udev zlib"
16 BUILD_DEPENDS="dbus-dev glib-dev udev-dev libgudev-dev fuse-dev \
17 udisks2-dev samba-dev smbclient expat-dev libarchive-dev libgcrypt-dev \
18 libsoup-dev libxml2-dev libcdio-dev dbus-glib-dev bluez-dev expat-dev \
19 libgphoto2-dev libmtp-dev gtk+3-dev glibc-dev sqlite-dev libtool"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 patch -p0 -i $stuff/allow-dropbear-ssh.patch
26 ./configure \
27 --prefix=/usr \
28 --libexecdir=/usr/lib/$PACKAGE \
29 --sysconfdir=/etc \
30 --disable-documentation \
31 --disable-bash-completion \
32 $CONFIGURE_ARGS && \
33 make && make install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 . $stuff/split
40 }
42 post_install()
43 {
44 echo "Processing post-install commands..."
45 chroot $1/ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
46 }
48 post_remove()
49 {
50 echo "Processing post-remove commands..."
51 chroot $1/ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
52 }