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

Giovanni Scafora giovanni at archlinux.org
Tue Dec 1 08:14:31 UTC 2009


    Date: Tuesday, December 1, 2009 @ 03:14:31
  Author: giovanni
Revision: 60149

upgpkg: parted 1.9.0-2
    Fixed FS17332

Added:
  parted/trunk/parted.install
Modified:
  parted/trunk/PKGBUILD

----------------+
 PKGBUILD       |    3 ++-
 parted.install |   18 ++++++++++++++++++
 2 files changed, 20 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-12-01 03:52:13 UTC (rev 60148)
+++ PKGBUILD	2009-12-01 08:14:31 UTC (rev 60149)
@@ -4,13 +4,14 @@
 
 pkgname=parted
 pkgver=1.9.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A program for creating, destroying, resizing, checking and copying partitions"
 arch=('i686' 'x86_64')
 license=('GPL3')
 url="http://www.gnu.org/software/parted/parted.html"
 depends=('device-mapper' 'e2fsprogs')
 options=('!libtool')
+install=parted.install
 source=(ftp://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz)
 md5sums=('055305bc7bcf472ce38f9abf69a9d94d')
 

Added: parted.install
===================================================================
--- parted.install	                        (rev 0)
+++ parted.install	2009-12-01 08:14:31 UTC (rev 60149)
@@ -0,0 +1,18 @@
+info_dir=/usr/share/info
+info_files=(parted.info)
+
+post_install() {
+  for f in ${info_files[@]}; do
+    install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+  done
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+  for f in ${info_files[@]}; do
+    install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+  done
+}




More information about the arch-commits mailing list