summaryrefslogtreecommitdiff
path: root/extra/most/PKGBUILD
blob: 6d91e7d02bc43b8922104d90961e27aafa5f5722 (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
# $Id: PKGBUILD 144477 2011-12-06 14:33:19Z stephane $
# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: juergen <juergen@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=most
pkgver=5.0.0a
pkgrel=4
pkgdesc="A terminal pager similar to 'more' and 'less'"
arch=('i686' 'x86_64')
depends=('slang')
license=('GPL')
url="http://www.jedsoft.org/most/index.html"
source=(ftp://space.mit.edu/pub/davis/${pkgname}/${pkgname}-${pkgver}.tar.gz
        most-debian.patch
        most-leak-fd.patch)
sha1sums=('99eedb7169754b9a47c7755ac48949d76531e3b2'
          '937796040c69bae3bf735fa3cd734775c582e7d0'
          'c5713e1278febdd0ed434e6e3044feb220b5d525')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  patch -Np1 -i ../most-debian.patch
  patch -Np1 -i ../most-leak-fd.patch
  ./configure --prefix=/usr --sysconfdir=/etc
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR=$pkgdir install
}