summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7bace6a2f9dc35b116972defa24ba9fa63e41598 (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
32
33
34
35
36
# $Id$
# Maintainer: Biell <biell@pobox.com>

pkgname=xvile
_basename=vile
pkgver=9.8_z
_basever=${pkgver//_/}
pkgrel=1
pkgdesc="vi like emacs"
arch=('i686' 'x86_64')
url="http://invisible-island.net/vile/vile.html"
depends=('perl' 'vile' 'xaw3d')
license=('custom')
options=(!libtool)
source=( https://invisible-island.net/archives/vile/current/vile-${_basever}.tgz )
sha256sums=( 0b3286c327b70a939f21992d22e42b5c1f8a6e953bd9ab9afa624ea2719272f7 )

build() {
  cd $srcdir/${_basename}-${_basever}
  ./configure --prefix=/usr --with-x --with-Xaw3d
  make || return 1
}

package() {
  cd $srcdir/${_basename}-${_basever}

  sed -e 's/ vile / xvile /' macros/vile-pager > macros/xvile-pager

  install -D -m 755 xvile ${pkgdir}/usr/bin/xvile
  install -D -m 755 macros/xvile-pager ${pkgdir}/usr/bin/xvile-pager
  install -D -m 644 vile.1 ${pkgdir}/usr/share/man/man1/xvile.1
  install -D -m 755 xshell.sh ${pkgdir}/usr/bin/xshell.sh
  install -D -m 644 macros/vilemenu.rc ${pkgdir}/usr/share/vile/vilemenu.rc
  install -D -m 644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
}