123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- # Maintainer (Arch): Sébastien "Seblu" Luttringer <seblu@archlinux.org>
- # Contributor (Arch): Allan McRae <allan@archlinux.org>
- # Contributor (Arch): judd <jvinet@zeroflux.org>
- # Maintainer: André Silva <emulatorman@hyperbola.info>
- # Contributor: Márcio Silva <coadde@hyperbola.info>
- pkgname=less
- pkgver=551
- _debver=551
- _debrel=2
- pkgrel=2
- pkgdesc='A terminal based program for viewing text files'
- license=('GPL-3')
- arch=('i686' 'x86_64')
- url='http://www.greenwoodsoftware.com/less'
- groups=('base')
- depends=('pcre')
- makedepends=('quilt')
- validpgpkeys=('AE27252BD6846E7D6EAE1DD6F153A7C833235259') # Mark Nudelman
- source=("http://www.greenwoodsoftware.com/$pkgname/$pkgname-$pkgver.tar.gz"
- "$pkgname-$pkgver.tar.gz.sig::http://www.greenwoodsoftware.com/$pkgname/$pkgname-$pkgver.sig"
- "https://deb.debian.org/debian/pool/main/l/less/less_$_debver-$_debrel.debian.tar.xz")
- sha512sums=('ef5296b9ebd72f83c05cad8a0f7a5eec2290e9b358ee725e09e8541bd95f94c0e14ea22aa04b287a0654079338eaeae813f2235b8e9f819fbbc9040dd65a9585'
- 'SKIP'
- '795eaacecf25dcd3da59b5e3d4682588c347cac2c832d4d645687c700b55f237b954a04e4d4fb363d733f5c6b325519ffd1e1d2045965d18e2fd90f2317d58c7')
- prepare() {
- cd $pkgname-$pkgver
- if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
- # Debian patches
- export QUILT_PATCHES=debian/patches
- export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
- export QUILT_DIFF_ARGS='--no-timestamps'
- mv "$srcdir"/debian .
- quilt push -av
- fi
- }
- build() {
- cd $pkgname-$pkgver
- sh configure --prefix=/usr --bindir=/bin --sysconfdir=/etc --with-regex=pcre
- make
- }
- package() {
- cd $pkgname-$pkgver
- make DESTDIR="$pkgdir" install
- install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
- }
- # vim:set ts=2 sw=2 et:
|