summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5b947868cac407cce36e2c102fa404b3fc818960 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: Francesco La Camera <fm@lacamera.org>
pkgname=nvi
pkgver=1.79
pkgrel=3
pkgdesc="Portable OpenBSD vi, originally distributed as part of 4BSD."
arch=("i686" "x86_64")
url="https://github.com/lacamera/nvi"
license=("BSD")
depends=("libtool" "readline" "ncurses")
source=("git+https://github.com/lacamera/nvi.git")
md5sums=("SKIP")

prepare(){
  cd "$srcdir/$pkgname/build"
  cp -pf /usr/share/libtool/build-aux/config.guess .
  cp -pf /usr/share/libtool/build-aux/config.sub .
}

build(){
  export CPPFLAGS="${CPPFLAGS} -U_FORTIFY_SOURCE"
  cd "$srcdir/$pkgname/build"
  ./configure --prefix="$pkgdir/usr" --program-prefix=n
  make
}

package(){
  cd "$srcdir/$pkgname/build"
  make install
  install -Dm644 "$srcdir/$pkgname/LICENSE"\
    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}