summaryrefslogtreecommitdiff
path: root/testing/less
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-04-14 04:54:18 +0000
committerroot <root@rshg047.dnsready.net>2011-04-14 04:54:18 +0000
commit0917a0682e48c4261e47d743725d990f47f6ec95 (patch)
tree32b99e036a20918da470922bf40276cedcfe7506 /testing/less
parent9c49791f6e912bd4834f00f2c6b3a00e6c12bb73 (diff)
Thu Apr 14 04:54:18 UTC 2011
Diffstat (limited to 'testing/less')
-rw-r--r--testing/less/PKGBUILD30
-rw-r--r--testing/less/zless9
2 files changed, 39 insertions, 0 deletions
diff --git a/testing/less/PKGBUILD b/testing/less/PKGBUILD
new file mode 100644
index 000000000..707787bbb
--- /dev/null
+++ b/testing/less/PKGBUILD
@@ -0,0 +1,30 @@
+# $Id: PKGBUILD 119700 2011-04-13 21:50:08Z allan $
+# Maintainer: Allan McRae <allan@archlinux.org>
+# Contributor: judd <jvinet@zeroflux.org>
+
+pkgname=less
+pkgver=443
+pkgrel=1
+pkgdesc="A terminal based program for viewing text files"
+license=('GPL3')
+arch=('i686' 'x86_64')
+url="http://www.greenwoodsoftware.com/less"
+groups=('base')
+depends=('ncurses' 'pcre')
+source=(http://www.greenwoodsoftware.com/$pkgname/$pkgname-$pkgver.tar.gz)
+md5sums=('47db098fb3cdaf847b3c4be05ee954fc')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ ./configure --prefix=/usr --with-regex=pcre
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ make prefix=${pkgdir}/usr install
+ install -dm755 ${pkgdir}/bin
+ mv ${pkgdir}/usr/bin/${pkgname} ${pkgdir}/bin
+}
diff --git a/testing/less/zless b/testing/less/zless
new file mode 100644
index 000000000..93d560bc5
--- /dev/null
+++ b/testing/less/zless
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+: ${PAGER=less}
+export PAGER
+
+PATH="/usr/bin:$PATH"
+export PATH
+
+exec zmore ${1+"$@"}