PKGBUILD 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
  2. # Contributor: Eric Bélanger <eric@archlinux.org>
  3. pkgname=vi
  4. pkgver=070224
  5. pkgrel=3
  6. epoch=1
  7. pkgdesc="The original ex/vi text editor"
  8. arch=('x86_64' 'ppc64le')
  9. url="http://ex-vi.sourceforge.net/"
  10. license=('custom:ex')
  11. groups=('base')
  12. depends=('ncurses')
  13. optdepends=('s-nail: used by the preserve command for notification')
  14. source=(https://sources.archlinux.org/other/$pkgname/ex-$pkgver.tar.xz{,.sig}
  15. fix-tubesize-short-overflow.patch
  16. navkeys.patch
  17. preserve-dir.patch)
  18. sha256sums=('c3e52dd44edd1f6bf0b52207f717c56149dc50aac0d131fff3851d589727f52f'
  19. 'SKIP'
  20. '42167fabebe30a13d594346b1d254db82090ba41742a9f35b8895d37092053f0'
  21. '0e9e2d381f1d8cb86daae68462b3849825b003c08007725c0db9939d3d5bf58d'
  22. 'f0ef9ed2ccea98bf47b08dd3faa2abb911b4e6c0579f5294e9d0e8742282ff65')
  23. validpgpkeys=('86CFFCA918CF3AF47147588051E8B148A9999C34')
  24. prepare() {
  25. cd ex-$pkgver
  26. patch -Np1 -i ../fix-tubesize-short-overflow.patch
  27. patch -Np1 -i ../navkeys.patch
  28. # https://bugs.archlinux.org/task/20653
  29. patch -Np1 -i ../preserve-dir.patch
  30. }
  31. build() {
  32. cd ex-$pkgver
  33. make PREFIX=/usr LIBEXECDIR=/usr/lib/ex PRESERVEDIR=/var/lib/ex \
  34. TERMLIB=ncurses FEATURES="-DCHDIR -DFASTTAG -DUCVISUAL -DMB -DBIT8"
  35. }
  36. package() {
  37. cd ex-$pkgver
  38. make PREFIX=/usr LIBEXECDIR=/usr/lib/ex PRESERVEDIR=/var/lib/ex \
  39. INSTALL=/usr/bin/install DESTDIR="$pkgdir" install
  40. install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  41. }
  42. # vim:set ts=2 sw=2 et: