[arch-commits] Commit in libxmi/trunk (PKGBUILD libxmi.install)
Andrea Scarpino
andrea at archlinux.org
Mon Oct 31 20:02:38 UTC 2011
Date: Monday, October 31, 2011 @ 16:02:38
Author: andrea
Revision: 141614
upgpkg: libxmi 1.2-4
Install info file
Added:
libxmi/trunk/libxmi.install
Modified:
libxmi/trunk/PKGBUILD
----------------+
PKGBUILD | 3 ++-
libxmi.install | 20 ++++++++++++++++++++
2 files changed, 22 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2011-10-31 19:59:13 UTC (rev 141613)
+++ PKGBUILD 2011-10-31 20:02:38 UTC (rev 141614)
@@ -4,13 +4,14 @@
pkgname=libxmi
pkgver=1.2
-pkgrel=3
+pkgrel=4
pkgdesc="A library for rasterizing 2-D vector graphics"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/libxmi/libxmi.html"
license=('GPL')
depends=('glibc')
options=('!libtool')
+install=libxmi.install
source=(http://mirrors.usc.edu/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz)
md5sums=('4e6935484f0ad71b531920bf4c546b47')
Added: libxmi.install
===================================================================
--- libxmi.install (rev 0)
+++ libxmi.install 2011-10-31 20:02:38 UTC (rev 141614)
@@ -0,0 +1,20 @@
+nfodir=usr/share/info
+filelist=(libxmi.info)
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ usr/bin/install-info $infodir/$file.gz $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
+ usr/bin/install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
+}
More information about the arch-commits
mailing list