summaryrefslogtreecommitdiffstats
path: root/abs/core/less/PKGBUILD
blob: a83ec603f0a73046022b393a71281e7ef067a184 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# $Id: PKGBUILD 47851 2009-07-28 09:48:01Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>

pkgname=less
pkgver=436
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')
source=(http://www.greenwoodsoftware.com/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('817bf051953ad2dea825a1cdf460caa4')

build() {
  cd $srcdir/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
}
package() {
  cd $srcdir/$pkgname-$pkgver
  make prefix=$pkgdir/usr install
  install -dm755 $pkgdir/bin
  mv $pkgdir/usr/bin/$pkgname $pkgdir/bin/
}