diff options
Diffstat (limited to 'testing/gnome-user-share')
-rw-r--r-- | testing/gnome-user-share/PKGBUILD | 33 | ||||
-rw-r--r-- | testing/gnome-user-share/gnome-user-share.install | 22 |
2 files changed, 55 insertions, 0 deletions
diff --git a/testing/gnome-user-share/PKGBUILD b/testing/gnome-user-share/PKGBUILD new file mode 100644 index 000000000..6467f24c9 --- /dev/null +++ b/testing/gnome-user-share/PKGBUILD @@ -0,0 +1,33 @@ +# $Id: PKGBUILD 140629 2011-10-17 15:25:55Z ibiru $ +# Maintainer: Roman Kyrylych <roman@archlinux.org> + +pkgname=gnome-user-share +pkgver=3.0.1 +pkgrel=1 +pkgdesc="Easy to use user-level file sharing for GNOME." +arch=('i686' 'x86_64') +url="http://ftp.gnome.org/pub/GNOME/sources/gnome-user-share/" +license=('GPL') +depends=('mod_dnssd' 'gconf' 'gtk3' 'hicolor-icon-theme' 'libnotify' 'gnome-bluetooth' 'libcanberra' 'libunique3') +makedepends=('intltool' 'gnome-doc-utils' 'nautilus') +options=('!emptydirs' '!libtool') +install=gnome-user-share.install +source=(http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz) +sha256sums=('9d1188c316e536ad6f84b595f118040474f8b9017acd492e80bce30d0c5d54ea') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure --prefix=/usr --sysconfdir=/etc \ + --libexecdir=/usr/lib/gnome-user-share \ + --localstatedir=/var + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make 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 gnome-user-share ${pkgdir}/etc/gconf/schemas/*.schemas + rm -f ${pkgdir}/etc/gconf/schemas/*.schemas +} diff --git a/testing/gnome-user-share/gnome-user-share.install b/testing/gnome-user-share/gnome-user-share.install new file mode 100644 index 000000000..3cc1b5286 --- /dev/null +++ b/testing/gnome-user-share/gnome-user-share.install @@ -0,0 +1,22 @@ +pkgname=gnome-user-share + +post_install() { + usr/sbin/gconfpkg --install ${pkgname} + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +pre_upgrade() { + pre_remove $1 +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + usr/sbin/gconfpkg --uninstall ${pkgname} +} + +post_remove() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} |