summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 10e3f34c3c7f48f13bec4418aaf9d9fc9d69baa9 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# $Id$
# Maintainer: Biell <biell@pobox.com>

pkgname=xvile
_basename=vile
pkgver=9.8_r
_basever=9.8
pkgrel=1
pkgdesc="vi like emacs"
arch=('i686' 'x86_64')
url="http://invisible-island.net/vile/vile.html"
_download="ftp://invisible-island.net/vile"
depends=('perl' 'vile' 'xaw3d')
license=('custom')
options=(!libtool)
source=(
	"$_download/vile-${_basever}.tgz"
	$(printf "$_download/patches/vile-${_basever}%s.patch.gz " \
		a b c d e f g h i j k l m n o p q r
	)
)
md5sums=(
	'b5a0d89165f633a662cdb4b5c57f2e2f'
	'685cb681943e9315a1689a6a6f4734cb'
	'f3842ea427c635d0ee96f6da8566fa56'
	'69cfdbb0b84a51802455bbe44a5ce32e'
	'5d675193bc02ac4cab72452bf0051489'
	'1e6317a15d7b2cd99f921f3af312b977'
	'7f8a38272395f07e1377cc1943d37e7f'
	'26ab76a7305b7ec97b22855810911ceb'
	'6ea4cf22e29f5418f26ba6632985c70e'
	'908e8f9cf3c9a681c3ef76a3cd04a0c3'
	'66f4136ab1ce33f491080c0fb3c87b06'
	'e4a60ed7e3959269201c5a937b206272'
	'6dcca45518004247ff9e11a791a054c9'
	'34ea7ba67a31685827c71d88d4be851b'
	'a820b20d9032e3021c1b4fdd5f01492b'
	'55b726a610737bd3203a4478e352b6b9'
	'6b0ad7123f74c6bb58f18fa0cfb50173'
	'c28888b36591275803f1c49a649a2e90'
	'd9c359c9c6718e45d751a3b405457c97'
)

prepare() {
  cd $srcdir/${_basename}-${_basever}
  for i in $srcdir/${_basename}-${_basever}?.patch; do
    patch -p1 <$i
  done
  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
}