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

Aaron Griffin aaron at archlinux.org
Fri Sep 12 21:35:40 UTC 2008


    Date: Friday, September 12, 2008 @ 17:35:39
  Author: aaron
Revision: 12319

upgpkg: indent 2.2.10-2
    Fix info inclusion

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

----------------+
 PKGBUILD       |    9 +++++++--
 indent.install |   18 ++++++++++++++++++
 2 files changed, 25 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2008-09-12 20:59:02 UTC (rev 12318)
+++ PKGBUILD	2008-09-12 21:35:39 UTC (rev 12319)
@@ -4,13 +4,14 @@
 # Contributor: Herb Rose (hrose56 at yahoo.com)
 pkgname=indent
 pkgver=2.2.10
-pkgrel=1
+pkgrel=2
 pkgdesc="The GNU Pretty-printer"
 url="http://indent.isidore-it.eu/beautify.html"
-depends=('glibc')
+depends=('glibc' 'texinfo')
 arch=(i686 x86_64)
 license=('GPL3')
 source=(http://indent.isidore-it.eu/$pkgname-$pkgver.tar.gz)
+install=indent.install
 md5sums=('be35ea62705733859fbf8caf816d8959')
 
 build() {
@@ -23,4 +24,8 @@
   # fix that the easiest way
   mkdir -p $startdir/pkg/usr/share
   mv $startdir/pkg/usr/doc $startdir/pkg/usr/share
+
+  rm -f $startdir/pkg/usr/share/info/dir
+
+  #TODO this tarball installs texinfo2man as well... we probably don't want that
 }

Added: indent.install
===================================================================
--- indent.install	                        (rev 0)
+++ indent.install	2008-09-12 21:35:39 UTC (rev 12319)
@@ -0,0 +1,18 @@
+info_dir=/usr/share/info
+info_files=(indent)
+
+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