Jaroslaw Swierczynski <[EMAIL PROTECTED]> writes:

> There is a much better and easier info browser at
> http://dione.ids.pl/~pborys/software/pinfo/ with lynx-like
> look'n'feel. If Arch is to include info files, pinfo should be the
> default browser.

Very nice!

-- 
KBK

diff -Naur pinfo/PKGBUILD pinfo.new/PKGBUILD
--- pinfo/PKGBUILD      1969-12-31 19:00:00.000000000 -0500
+++ pinfo.new/PKGBUILD  2005-04-10 14:34:02.000000000 -0400
@@ -0,0 +1,25 @@
+# $Id: $
+# Contributor: Kurt B. Kaiser <[EMAIL PROTECTED]>
+# Assumes makepkg has been patched to include info files
+
+pkgname=pinfo
+pkgver=0.6.8
+pkgrel=1
+pkgdesc="ncurses-based, lynx-style info doc browser"
+url="http://dione.ids.pl/~pborys/software/$pkgname/";
+license="GPLv2"
+depends=(texinfo)
+makedepends=()
+install=pinfo.install
+
+source=($url/$pkgname-$pkgver.tar.gz)
+md5sums=('55feb4ebaa709b52bd00a15ed0fb52fb')
+
+build() {
+  cd $startdir/src/$pkgname-$pkgver && \
+  ./configure --prefix=/usr && \
+  make || return 1
+  make DESTDIR=$startdir/pkg install && \
+  rm -f $startdir/pkg/usr/info/dir  # don't overwrite system's /usr/info/dir
+}
+
diff -Naur pinfo/pinfo.install pinfo.new/pinfo.install
--- pinfo/pinfo.install 1969-12-31 19:00:00.000000000 -0500
+++ pinfo.new/pinfo.install     2005-04-10 18:00:35.000000000 -0400
@@ -0,0 +1,43 @@
+# install/remove for pinfo
+# Contributor: Kurt B. Kaiser <[EMAIL PROTECTED]>
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+   (cd /usr/info/ && install-info --section "Texinfo documentation system" \
+                                               pinfo.info dir)
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_upgrade() {
+  (cd /usr/info && install-info --remove pinfo.info dir)
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_upgrade() {
+  post_install $1
+  /bin/true
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  pre_upgrade $1 $1
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+op=$1
+shift
+$op $*

_______________________________________________
arch mailing list
[email protected]
http://www.archlinux.org/mailman/listinfo/arch

Reply via email to