[arch-commits] Commit in wget/trunk (PKGBUILD wget.install)
Allan McRae
allan at archlinux.org
Wed Sep 23 03:39:21 UTC 2009
Date: Tuesday, September 22, 2009 @ 23:39:20
Author: allan
Revision: 52882
upgpkg: wget 1.12-1
upstream update, add info install script
Added:
wget/trunk/wget.install
Modified:
wget/trunk/PKGBUILD
--------------+
PKGBUILD | 7 ++++---
wget.install | 20 ++++++++++++++++++++
2 files changed, 24 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2009-09-23 02:57:03 UTC (rev 52881)
+++ PKGBUILD 2009-09-23 03:39:20 UTC (rev 52882)
@@ -3,8 +3,8 @@
# Contributor: Judd Vinet <jvinet at zeroflux.org>
pkgname=wget
-pkgver=1.11.4
-pkgrel=2
+pkgver=1.12
+pkgrel=1
pkgdesc="A network utility to retrieve files from the Web"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/wget/wget.html"
@@ -13,8 +13,9 @@
depends=('glibc' 'openssl')
optdepends=('ca-certificates: HTTPS downloads')
backup=('etc/wgetrc')
+install=wget.install
source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz)
-md5sums=('69e8a7296c0e12c53bd9ffd786462e87')
+md5sums=('141461b9c04e454dc8933c9d1f2abf83')
build() {
cd ${srcdir}/$pkgname-$pkgver
Added: wget.install
===================================================================
--- wget.install (rev 0)
+++ wget.install 2009-09-23 03:39:20 UTC (rev 52882)
@@ -0,0 +1,20 @@
+infodir=/usr/share/info
+filelist=(wget.info)
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
More information about the arch-commits
mailing list