summaryrefslogtreecommitdiff
path: root/libre/lesspipe-libre/PKGBUILD
blob: 48d5ebe0f934b4ebd1932d537d50d41bad8210b5 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# $Id: PKGBUILD 14692 2010-04-07 09:06:46Z spupykin $
# Maintainer: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
# Contributor: solsTiCe d'Hiver <solstice.dhiver@gmail.com>

_pkgname=lesspipe
pkgname=lesspipe-libre
pkgver=1.71
pkgrel=1
pkgdesc='an input filter for the pager less'
depends=('less')
arch=('i686' 'x86_64')
license=('GPL')
optdepends=('rpmextract: support for rpm files'
	    'fastjar: support for jar files'
	    'unzip: support for zip files'
	    'p7zip: support for 7za files'
	    'cabextract: support for cab files'
	    'cdrkit: support for iso files'
	    'html2text: support for html files'
	    'antiword: support for word file'
	    'unrtf: support for rtf file'
	    'imagemagick: support for some image file')
url="http://www-zeuthen.desy.de/~friebel/unix/lesspipe.html"
source=(http://www-zeuthen.desy.de/~friebel/unix/less/lesspipe.tar.gz \
	lesspipe.sh)
md5sums=('6d921dc4ce9809d405cb8d694ac7cbbd'
         '675b56f560c600f43108adfd98222251')
provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname")
replaces=("$_pkgname")

build() {
  cd $srcdir/$_pkgname-$pkgver

  ./configure --prefix=/usr --yes
  make || return 1
  mkdir -p $pkgdir/usr/share/man/man1
  make install PREFIX=$pkgdir/usr || return 1

  install -D $srcdir/lesspipe.sh $pkgdir/etc/profile.d/lesspipe.sh
}