summaryrefslogtreecommitdiff
path: root/extra/most/PKGBUILD
blob: dbc57f6fe8633d2e764d8baf39e138902d80a12f (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 176312 2013-01-29 13:46:57Z 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=5
pkgdesc="A terminal pager similar to 'more' and 'less'"
arch=('i686' 'x86_64' 'mips64el')
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
}