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

Alexander Fehr alexanderf at archlinux.org
Sat Dec 6 14:24:14 UTC 2008


    Date: Saturday, December 6, 2008 @ 09:24:14
  Author: alexanderf
Revision: 20747

upgpkg: xarchiver 0.5.2-1

Added:
  xarchiver/trunk/ChangeLog
Modified:
  xarchiver/trunk/PKGBUILD
  xarchiver/trunk/xarchiver.install

-------------------+
 ChangeLog         |    9 +++++++++
 PKGBUILD          |   42 +++++++++++++++++++++++++++---------------
 xarchiver.install |   45 ++-------------------------------------------
 3 files changed, 38 insertions(+), 58 deletions(-)

Added: ChangeLog
===================================================================
--- ChangeLog	                        (rev 0)
+++ ChangeLog	2008-12-06 14:24:14 UTC (rev 20747)
@@ -0,0 +1,9 @@
+2008-11-27  Alexander Fehr  <pizzapunk gmail com>
+
+  * xarchiver-0.5.2-1:
+  New upstream release.
+  New maintainer.
+  Changed license to GPL.
+  Added dependencies on desktop-file-utils and hicolor-icon-theme.
+  Replaced install message with optdepends.
+  Added ChangeLog.

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2008-12-06 14:17:50 UTC (rev 20746)
+++ PKGBUILD	2008-12-06 14:24:14 UTC (rev 20747)
@@ -1,25 +1,37 @@
 # $Id$
+# Maintainer: Alexander Fehr <pizzapunk gmail com>
 # Contributor: Andrew Simmons <andrew.simmons at gmail.com>
 
 pkgname=xarchiver
-pkgver=0.5.0beta1
-pkgrel=6
-pkgdesc="a GUI for multiple archive types"
-arch=(i686 x86_64)
-license=('GPL2')
+pkgver=0.5.2
+pkgrel=1
+pkgdesc="GTK+ frontend to various command line archivers"
+arch=('i686' 'x86_64')
+url="http://xarchiver.xfce.org/"
+license=('GPL')
 groups=('xfce4-goodies')
-url="http://xarchiver.xfce.org"
-depends=('gtk2')
-makedepends=('intltool' 'pkgconfig')
+depends=('gtk2' 'desktop-file-utils' 'hicolor-icon-theme')
+makedepends=('intltool')
+optdepends=('tar: TAR support'
+            'gzip: GZIP support'
+            'bzip2: BZIP2 support'
+            'zip: ZIP support'
+            'unzip: ZIP support'
+            'unrar: RAR support'
+            'p7zip: 7z support'
+            'arj: ARJ support'
+            'lha: LHA support'
+            'lzma-utils: LZMA support'
+            'lzop: LZOP support')
 options=('!libtool')
-install=${pkgname}.install
-source=(http://dl.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
-md5sums=('d57dcae78473681d6cd3b8dcf6e5c3d1')
+install=xarchiver.install
+source=(http://downloads.sourceforge.net/xarchiver/xarchiver-$pkgver.tar.bz2)
+md5sums=('2bc7f06403cc6582dd4a8029ec9d038d')
 
 build() {
-  cd ${startdir}/src/${pkgname}-${pkgver}
-  ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/xfce4 \
-    --localstatedir=/var --disable-static
+  cd "$srcdir/xarchiver-$pkgver"
+
+  ./configure --prefix=/usr --libexecdir=/usr/lib/xfce4 || return 1
   make || return 1
-  make DESTDIR=${startdir}/pkg install
+  make DESTDIR="$pkgdir" install || return 1
 }

Modified: xarchiver.install
===================================================================
--- xarchiver.install	2008-12-06 14:17:50 UTC (rev 20746)
+++ xarchiver.install	2008-12-06 14:24:14 UTC (rev 20747)
@@ -1,53 +1,12 @@
-# arg 1:  the new package version
 post_install() {
-
-  # Check to see if the user needs to know about other archive types
-  which zip &> /dev/null
-  haszip=$?
-  which unzip &> /dev/null
-  hasunzip=$?
-  which unrar &> /dev/null
-  hasrar=$?
-  which 7z &> /dev/null
-  has7z=$?
-  which arj &> /dev/null
-  hasarj=$?
-
-  if [ $haszip -eq 1 -o $hasunzip -eq 1 -o $hasrar -eq 1 -o $has7z -eq 1 -o $hasarj -eq 1 ]; then
-
-    echo ">>> Certain archive types cannot be opened without the following:"
-
-    if [ $haszip -eq 1 -o $hasunzip -eq 1 ]; then
-      echo ">>> - for zip support, install the 'zip' and 'unzip' packages."
-    fi
-
-    if [ $hasrar -eq 1 ]; then
-      echo ">>> - for rar support, install the 'unrar' package."
-    fi
-
-    if [ $has7z -eq 1 ]; then
-      echo ">>> - for 7zip (7z) support, install the 'p7zip' package."
-    fi
-
-    if [ $hasarj -eq 1 ]; then
-      echo ">>> - for arj support, install the 'arj' package."
-    fi
-  fi
   update-desktop-database -q
   gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
 }
 
-# arg 1:  the new package version
-# arg 2:  the old package version
 post_upgrade() {
-  post_install $1
+  post_install
 }
 
 post_remove() {
-  update-desktop-database -q
-  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+  post_install
 }
-
-op=$1
-shift
-$op $*




More information about the arch-commits mailing list