[arch-commits] Commit in banshee/trunk (PKGBUILD banshee.install)

Ionut Biru ibiru at archlinux.org
Sat Jan 1 14:12:44 EST 2011


    Date: Saturday, January 1, 2011 @ 14:12:43
  Author: ibiru
Revision: 104359

upgpkg: banshee 1.8.0-2
improve packaging and adding new features. FS#21376

Modified:
  banshee/trunk/PKGBUILD
  banshee/trunk/banshee.install

-----------------+
 PKGBUILD        |   62 +++++++++++++++++++++++++-----------------------------
 banshee.install |   15 ++-----------
 2 files changed, 32 insertions(+), 45 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-01-01 18:55:24 UTC (rev 104358)
+++ PKGBUILD	2011-01-01 19:12:43 UTC (rev 104359)
@@ -1,51 +1,47 @@
 # $Id$
-# Maintainer: Hugo Doria <hugo at archlinux.org>
-
+# Contributor: György Balló <ballogy at freestart.hu>
 pkgname=banshee
+_pkgname=banshee-1
 pkgver=1.8.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Music management and playback for GNOME"
 arch=('i686' 'x86_64')
-url="http://banshee-project.org/"
+url="http://banshee.fm/"
 license=('MIT')
-depends=('sqlite3' 'ndesk-dbus-glib' 'mono-addins' 'taglib-sharp'
-         'gstreamer0.10-good-plugins' 'gstreamer0.10-base-plugins'
-         'gnome-sharp' 'libmtp' 'ipod-sharp' 'boo' 'mono-zeroconf'
-         'libxxf86vm' 'gnome-icon-theme' 'desktop-file-utils' 'webkit-sharp')
-makedepends=('pkgconfig' 'intltool')
-optdepends=('gstreamer0.10-ugly-plugins: Extra media codecs'
-	    'gstreamer0.10-bad-plugins: Extra media codecs'
-	    'gstreamer0.10-ffmpeg: Extra media codecs'
-	    'brasero: CD burning'
-	    'notify-sharp-svn: Display Banshee tray icon')
-options=('!libtool' '!makeflags' '!emptydirs')
-install=banshee.install
-source=(http://download.banshee-project.org/${pkgname}/stable/${pkgver}/${pkgname}-1-${pkgver}.tar.bz2)
+depends=('libxxf86vm' 'gnome-desktop>=2.28' 'mono-addins>=0.3.1' 'notify-sharp-svn' 'boo>=0.8.1' 'libwebkit>=1.2.2' 'gdata-sharp>=1.4' 'gtk-sharp-beans' 'gudev-sharp' 'gkeyfile-sharp' 'taglib-sharp>=2.0.3.7' 'gnome-sharp' 'libmtp>=0.2.0' 'libgpod>=0.7.95' 'mono-zeroconf>=0.8.0' 'gstreamer0.10-base-plugins>=0.10.25.2' 'desktop-file-utils' 'shared-mime-info' 'hicolor-icon-theme' 'xdg-utils')
+makedepends=('intltool>=0.35.0' 'gnome-doc-utils>=0.17.3')
+optdepends=('gstreamer0.10-good-plugins: Extra media codecs'
+            'gstreamer0.10-ugly-plugins: Extra media codecs'
+            'gstreamer0.10-bad-plugins: Extra media codecs'
+            'gstreamer0.10-ffmpeg: Extra media codecs'
+            'brasero: CD burning')
+options=('!libtool')
+install=$pkgname.install
+source=(http://download.banshee.fm/$pkgname/stable/$pkgver/$_pkgname-$pkgver.tar.bz2)
 sha256sums=('321a5ee45c0e6b0df0e7767512ad5466773fb53dc0aaef491db0ec68377896af')
 
 build() {
-  export MONO_SHARED_DIR="${srcdir}/.wabi"
-  mkdir -p "${MONO_SHARED_DIR}"
-  cd "${srcdir}/${pkgname}-1-${pkgver}"
-  ./configure --prefix=/usr \
-              --sysconfdir=/etc \
-              --localstatedir=/var \
+  export MONO_SHARED_DIR="$srcdir/.wabi"
+  mkdir -p "$MONO_SHARED_DIR"
+
+  cd "$srcdir/$_pkgname-$pkgver"
+
+  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
               --disable-docs \
               --disable-static \
-              --disable-youtube
+              --disable-scrollkeeper \
+              --disable-ipod --disable-hal \
+              --with-vendor-build-id=ArchLinux
   make
 }
 
 package() {
-  export MONO_SHARED_DIR="${srcdir}/.wabi"
-  mkdir -p "${MONO_SHARED_DIR}"
-  cd "${srcdir}/${pkgname}-1-${pkgver}"
-  make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install
+  export MONO_SHARED_DIR="$srcdir/.wabi"
+  mkdir -p "$MONO_SHARED_DIR"
 
-  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
-  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
+  cd "$srcdir/$_pkgname-$pkgver"
+  make DESTDIR="$pkgdir/" install
 
-  install -d -m755 "${pkgdir}/usr/share/gconf/schemas"
-  gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${pkgname}.schemas" --domain banshee-1 ${pkgdir}/etc/gconf/schemas/*.schemas
-  rm -f ${pkgdir}/etc/gconf/schemas/*.schemas
+  install -m755 -d "$pkgdir"/usr/share/licenses/"$pkgname"
+  install -m644 COPYING "$pkgdir"/usr/share/licenses/${pkgname}/
 }

Modified: banshee.install
===================================================================
--- banshee.install	2011-01-01 18:55:24 UTC (rev 104358)
+++ banshee.install	2011-01-01 19:12:43 UTC (rev 104359)
@@ -1,24 +1,15 @@
 pkgname=banshee
 
 post_install() {
-  usr/sbin/gconfpkg --install ${pkgname}
   update-desktop-database -q
-  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+  update-mime-database usr/share/mime
+  xdg-icon-resource forceupdate
 }
 
-pre_upgrade() {
-  pre_remove $1
-}
-
 post_upgrade() {
   post_install $1
 }
 
-pre_remove() {
-  usr/sbin/gconfpkg --uninstall ${pkgname}
-}
-
 post_remove() {
-  update-desktop-database -q
-  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+  post_install $1
 }



More information about the arch-commits mailing list