summaryrefslogtreecommitdiff
path: root/core/less/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'core/less/PKGBUILD')
-rw-r--r--core/less/PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/core/less/PKGBUILD b/core/less/PKGBUILD
new file mode 100644
index 000000000..c84d7d787
--- /dev/null
+++ b/core/less/PKGBUILD
@@ -0,0 +1,30 @@
+# $Id: PKGBUILD 100030 2010-11-20 00:42:11Z stephane $
+# Maintainer: Allan McRae <allan@archlinux.org>
+# Contributor: judd <jvinet@zeroflux.org>
+
+pkgname=less
+pkgver=436
+pkgrel=2
+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=('817bf051953ad2dea825a1cdf460caa4')
+
+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
+}