From 7a65a910b77ad191d69881098c47f9b0c852d92e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Aug 2013 01:33:19 -0700 Subject: Tue Aug 13 01:31:08 PDT 2013 --- community/libgnome-media-profiles/PKGBUILD | 34 ++++++++++++++++++++++ .../libgnome-media-profiles.install | 21 +++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 community/libgnome-media-profiles/PKGBUILD create mode 100644 community/libgnome-media-profiles/libgnome-media-profiles.install (limited to 'community/libgnome-media-profiles') diff --git a/community/libgnome-media-profiles/PKGBUILD b/community/libgnome-media-profiles/PKGBUILD new file mode 100644 index 000000000..6fc7c2a8f --- /dev/null +++ b/community/libgnome-media-profiles/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 87928 2013-04-08 18:08:07Z bgyorgy $ +# Maintainer: Balló György +# Contributor: Ionut Biru + +pkgname=libgnome-media-profiles +pkgver=3.0.0 +pkgrel=4 +pkgdesc="Library for management of audio recording profiles" +arch=('i686' 'x86_64') +url="https://git.gnome.org/browse/libgnome-media-profiles" +license=('GPL2') +depends=('gconf' 'gtk3' 'gstreamer0.10-base-plugins') +makedepends=('intltool' 'gnome-doc-utils') +options=('!libtool') +install=$pkgname.install +source=(http://download.gnome.org/sources/${pkgname}/3.0/${pkgname}-${pkgver}.tar.bz2) +sha256sums=('ab1288e53a8fccca3e8fa59757ef586901e236e09a737a1178eeb8d74428c061') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + ./configure --prefix=/usr --sysconfdir=/etc \ + --disable-static --disable-schemas-install \ + --with-gconf-schema-file-dir=/usr/share/gconf/schemas + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir" install +} + +# vim:set ts=2 sw=2 et: diff --git a/community/libgnome-media-profiles/libgnome-media-profiles.install b/community/libgnome-media-profiles/libgnome-media-profiles.install new file mode 100644 index 000000000..1c2bfeac0 --- /dev/null +++ b/community/libgnome-media-profiles/libgnome-media-profiles.install @@ -0,0 +1,21 @@ +pkgname=gnome-media-profiles + +post_install(){ + usr/sbin/gconfpkg --install ${pkgname} +} + +pre_upgrade() { + pre_remove $1 +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + if [ "$(vercmp 3.0.0-4 "$2")" -eq 1 ]; then + usr/sbin/gconfpkg --uninstall libgnome-media-profiles + else + usr/sbin/gconfpkg --uninstall ${pkgname} + fi +} -- cgit v1.2.3-54-g00ecf