1 # Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
2 # Contributor: Eric BĂ©langer <eric@archlinux.org>
8 pkgdesc="The original ex/vi text editor"
10 url="https://ex-vi.sourceforge.net/"
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
20 sha256sums=('c3e52dd44edd1f6bf0b52207f717c56149dc50aac0d131fff3851d589727f52f'
22 '42167fabebe30a13d594346b1d254db82090ba41742a9f35b8895d37092053f0'
23 '0e9e2d381f1d8cb86daae68462b3849825b003c08007725c0db9939d3d5bf58d'
24 'ec50373ab48a9b327c5d02b10406bc3d04310d692de6c17098a59b1afeb08e03'
25 '4539f46cd839475c168a9c463f041354463e90e810b973a10c499c2727b008e7'
26 'f0ef9ed2ccea98bf47b08dd3faa2abb911b4e6c0579f5294e9d0e8742282ff65')
27 validpgpkeys=('86CFFCA918CF3AF47147588051E8B148A9999C34')
32 patch -Np1 -i ../fix-tubesize-short-overflow.patch
33 patch -Np1 -i ../navkeys.patch
35 # https://bugs.archlinux.org/task/76121
36 patch -Np1 -i ../format-security.patch
38 # https://bugs.archlinux.org/task/70770
39 patch -Np1 -i ../linenum.patch
41 # https://bugs.archlinux.org/task/20653
42 patch -Np1 -i ../preserve-dir.patch
48 make PREFIX=/usr LIBEXECDIR=/usr/lib/ex PRESERVEDIR=/var/lib/ex \
49 TERMLIB=ncurses FEATURES="-DCHDIR -DFASTTAG -DUCVISUAL -DMB -DBIT8"
55 make PREFIX=/usr LIBEXECDIR=/usr/lib/ex PRESERVEDIR=/var/lib/ex \
56 INSTALL=/usr/bin/install DESTDIR="$pkgdir" install
57 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
60 # vim:set ts=2 sw=2 et: