PKGBUILD 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Maintainer (Arch): Sébastien "Seblu" Luttringer <seblu@archlinux.org>
  2. # Contributor (Arch): Allan McRae <allan@archlinux.org>
  3. # Contributor (Arch): judd <jvinet@zeroflux.org>
  4. # Maintainer: André Silva <emulatorman@hyperbola.info>
  5. # Contributor: Márcio Silva <coadde@hyperbola.info>
  6. pkgname=less
  7. pkgver=551
  8. _debver=551
  9. _debrel=2
  10. pkgrel=2
  11. pkgdesc='A terminal based program for viewing text files'
  12. license=('GPL-3')
  13. arch=('i686' 'x86_64')
  14. url='http://www.greenwoodsoftware.com/less'
  15. groups=('base')
  16. depends=('pcre')
  17. makedepends=('quilt')
  18. validpgpkeys=('AE27252BD6846E7D6EAE1DD6F153A7C833235259') # Mark Nudelman
  19. source=("http://www.greenwoodsoftware.com/$pkgname/$pkgname-$pkgver.tar.gz"
  20. "$pkgname-$pkgver.tar.gz.sig::http://www.greenwoodsoftware.com/$pkgname/$pkgname-$pkgver.sig"
  21. "https://deb.debian.org/debian/pool/main/l/less/less_$_debver-$_debrel.debian.tar.xz")
  22. sha512sums=('ef5296b9ebd72f83c05cad8a0f7a5eec2290e9b358ee725e09e8541bd95f94c0e14ea22aa04b287a0654079338eaeae813f2235b8e9f819fbbc9040dd65a9585'
  23. 'SKIP'
  24. '795eaacecf25dcd3da59b5e3d4682588c347cac2c832d4d645687c700b55f237b954a04e4d4fb363d733f5c6b325519ffd1e1d2045965d18e2fd90f2317d58c7')
  25. prepare() {
  26. cd $pkgname-$pkgver
  27. if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
  28. # Debian patches
  29. export QUILT_PATCHES=debian/patches
  30. export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
  31. export QUILT_DIFF_ARGS='--no-timestamps'
  32. mv "$srcdir"/debian .
  33. quilt push -av
  34. fi
  35. }
  36. build() {
  37. cd $pkgname-$pkgver
  38. sh configure --prefix=/usr --bindir=/bin --sysconfdir=/etc --with-regex=pcre
  39. make
  40. }
  41. package() {
  42. cd $pkgname-$pkgver
  43. make DESTDIR="$pkgdir" install
  44. install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
  45. }
  46. # vim:set ts=2 sw=2 et: