summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3f929422e59a90c176022be7353bfe8358a2cb32 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
# $Id$
# Maintainer: Biell <biell@pobox.com>

pkgname=xvile
_basename=vile
pkgver=9.8_t
_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=( ftp://ftp.invisible-island.net/vile/current/vile-${_basever}.tgz )
sha1sums=( 9e181852cdc3ff72756ace4873bcf3eddd071cf5 )

prepare() {
  cd $srcdir/${_basename}-${_basever}
  #sed -i 's|FLEX_BETA|FLEX_NOBETA|g' filters/filters.h
}

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

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

  install -D -m 755 xvile $pkgdir/usr/bin/xvile

  sed -e 's/ vile / xvile /' ./macros/vile-pager >$pkgdir/usr/bin/xvile-pager
  chmod 755 $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

  mkdir -p $pkgdir/usr/share/licenses/$pkgname
  cat <<EOF >$pkgdir/usr/share/licenses/$pkgname/license
Copyright

Vile is copyrighted by Paul G. Fox, Thomas E. Dickey and Kevin Buettner with some
files (e.g., visvile) copyright by Clark Morgan.
We distribute it under the terms of the GNU Public License, Version 2. 
EOF
}