db-move: moved libdmapsharing from [testing] to [extra] (x86_64)
[arch-packages.git] / vi / repos / core-x86_64 / PKGBUILD
blob1418f6b66fad6f46dce7f941479a87d7a38a0070
1 # Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
2 # Contributor: Eric BĂ©langer <eric@archlinux.org>
4 pkgname=vi
5 pkgver=070224
6 pkgrel=6
7 epoch=1
8 pkgdesc="The original ex/vi text editor"
9 arch=('x86_64')
10 url="https://ex-vi.sourceforge.net/"
11 license=('custom:ex')
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         format-security.patch
18         linenum.patch
19         preserve-dir.patch)
20 sha256sums=('c3e52dd44edd1f6bf0b52207f717c56149dc50aac0d131fff3851d589727f52f'
21             'SKIP'
22             '42167fabebe30a13d594346b1d254db82090ba41742a9f35b8895d37092053f0'
23             '0e9e2d381f1d8cb86daae68462b3849825b003c08007725c0db9939d3d5bf58d'
24             'ec50373ab48a9b327c5d02b10406bc3d04310d692de6c17098a59b1afeb08e03'
25             '4539f46cd839475c168a9c463f041354463e90e810b973a10c499c2727b008e7'
26             'f0ef9ed2ccea98bf47b08dd3faa2abb911b4e6c0579f5294e9d0e8742282ff65')
27 validpgpkeys=('86CFFCA918CF3AF47147588051E8B148A9999C34')
29 prepare() {
30   cd ex-$pkgver
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
45 build() {
46   cd ex-$pkgver
48   make PREFIX=/usr LIBEXECDIR=/usr/lib/ex PRESERVEDIR=/var/lib/ex \
49     TERMLIB=ncurses FEATURES="-DCHDIR -DFASTTAG -DUCVISUAL -DMB -DBIT8"
52 package() {
53   cd ex-$pkgver
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: