[arch-commits] Commit in gnome-disk-utility/trunk (PKGBUILD)

Jan Steffens heftig at archlinux.org
Sat Oct 1 12:58:41 EDT 2011


    Date: Saturday, October 1, 2011 @ 12:58:41
  Author: heftig
Revision: 139200

split libgdu

Modified:
  gnome-disk-utility/trunk/PKGBUILD

----------+
 PKGBUILD |   40 ++++++++++++++++++++++++++++++----------
 1 file changed, 30 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-10-01 16:58:06 UTC (rev 139199)
+++ PKGBUILD	2011-10-01 16:58:41 UTC (rev 139200)
@@ -1,32 +1,52 @@
 # $Id$
 # Maintainer: Jan de Groot <jgc at archlinux.org>
+# Contributor: Silvio Knizek (killermoehre)
 
-pkgname=gnome-disk-utility
+pkgbase=gnome-disk-utility
+pkgname=(gnome-disk-utility libgdu)
 pkgver=3.0.2
-pkgrel=1
+pkgrel=2
 pkgdesc="GNOME libraries and applications for dealing with storage devices"
 arch=('i686' 'x86_64')
 license=('GPL')
 url="http://www.gnome.org"
-depends=('dbus-glib' 'libgnome-keyring' 'libunique3' 'udisks' 'libnotify' 'hicolor-icon-theme' 'avahi')
-makedepends=('gtk-doc' 'intltool')
+makedepends=('dbus-glib' 'libgnome-keyring' 'udisks' 'libunique3' 'libnotify' 'avahi'
+             'hicolor-icon-theme' 'gtk-doc' 'intltool')
 options=('!libtool' '!emptydirs')
-install=gnome-disk-utility.install
-source=(http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz
+source=(http://ftp.gnome.org/pub/GNOME/sources/${pkgbase}/${pkgver%.*}/${pkgbase}-${pkgver}.tar.xz
        fix-freeze.patch)
 sha256sums=('7983f12ba04e84f164d0cae54bb06ed9b3ebe6c0a1c606d63d067fc395aeb0a5'
             '818b70360978968457d2c50738347c6726ed8d0c007eb57074881a7e33652526')
 
 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd "${srcdir}/${pkgbase}-${pkgver}"
   patch -Np1 -i "${srcdir}/fix-freeze.patch"
   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
       --libexecdir=/usr/lib/gnome-disk-utility \
-      --disable-scrollkeeper --disable-nautilus --disable-gtk-doc
+      --disable-scrollkeeper --disable-nautilus --disable-static
   make
 }
 
-package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+package_gnome-disk-utility() {
+  depends=("libgdu=$pkgver-$pkgrel" 'libunique3' 'libnotify' 'hicolor-icon-theme' 'avahi')
+  groups=('gnome-extra')
+  install=gnome-disk-utility.install
+
+  cd "${srcdir}/${pkgbase}-${pkgver}"
   make DESTDIR="${pkgdir}" install
+
+### Split libgdu
+
+  mkdir -p "$srcdir"/libgdu/usr/{include/gnome-disk-utility,lib/pkgconfig}
+
+  mv "$pkgdir"/usr/lib/libgdu.so* "$srcdir/libgdu/usr/lib"
+  mv {"$pkgdir","$srcdir/libgdu"}/usr/include/gnome-disk-utility/gdu
+  mv {"$pkgdir","$srcdir/libgdu"}/usr/lib/pkgconfig/gdu.pc
 }
+
+package_libgdu() {
+  pkgdesc="$pkgdesc (library)"
+  depends=('dbus-glib' 'libgnome-keyring' 'udisks')
+
+  mv "$srcdir"/libgdu/* "$pkgdir"
+}



More information about the arch-commits mailing list