summaryrefslogtreecommitdiff
path: root/libre/lesspipe/PKGBUILD
blob: d79d46ef406ab073c50b757149f025c4588e034e (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
43
44
# $Id: PKGBUILD 138775 2015-08-26 07:05:31Z spupykin $
# Maintainer (Arch): Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
# Contributor (Arch): solsTiCe d'Hiver <solstice.dhiver@gmail.com>
# Maintainer: André Silva <emulatorman@hyperbola.info>

pkgname=lesspipe
pkgver=1.83
pkgrel=1.parabola1
pkgdesc='an input filter for the pager less, with libarchive recommendation'
depends=('less')
arch=('any')
license=('GPL')
replaces=(${pkgname}-libre)
conflicts=(${pkgname}-libre)
optdepends=('perl'
	    'rpmextract: support for rpm files'
	    'fastjar: support for jar files'
	    'unzip: support for zip files'
	    'libarchive: support for rar 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://downloads.sourceforge.net/project/lesspipe/lesspipe/$pkgver/lesspipe-$pkgver.tar.gz"
	lesspipe.sh)
md5sums=('fff7da88b9af45497c493a1682c67652'
         '675b56f560c600f43108adfd98222251')

build() {
  cd $srcdir/$pkgname-$pkgver
  ./configure --prefix=/usr --yes
  make
}

package() {
  cd $srcdir/$pkgname-$pkgver
  mkdir -p $pkgdir/usr/share/man/man1
  make install PREFIX=$pkgdir/usr
  install -D $srcdir/lesspipe.sh $pkgdir/etc/profile.d/lesspipe.sh
}