updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / elvis_slack / PKGBUILD
bloba36b35f1382ff31db34648c01db68a1ab5d21da6
1 # Maintainer: Rudy Matela <rudy.matela@gmail.com>
2 # Based on early pkgbuild by froggie <haptikers@gmail.com>
3 # Date: 2008-10-24 17:36
4 pkgname=elvis_slack
5 pkgver=2.2_0
6 pkgrel=5
7 pkgdesc="A vi clone with special security features (With Slackware ``Patch'')"
8 depends=('ncurses')
9 source=("ftp://ftp.cs.pdx.edu/pub/elvis/elvis-$pkgver.tar.gz"
10         "http://slackware.osuosl.org/slackware_source/a/elvis/elvis.clr"
11         "http://slackware.osuosl.org/slackware_source/a/elvis/elvis.clr.orig"
12                 "getline.patch")
13 url="http://elvis.the-little-red-haired-girl.org/"
14 md5sums=('6831b8df3e4a530395e66c2889783752'
15          'c47a70cb176ebf2eb99b055c4048a560'
16          'a4539efb7e8fae629da375d98d3d6ae8'
17          'd7517d3dad19f04d4d9a78a18e16e3d1')
18 arch=('i686' 'x86_64')
19 license=('PerlArtistic')
20 conflicts=('elvis')
21 replaces=('elvis')
23 build() {
24   cd $srcdir/elvis-$pkgver
25   cp $srcdir/elvis.clr* ./data
26   patch -p0 < $srcdir/getline.patch
27   ./configure --prefix=/usr --without-x --without-gnome --verbose
28   sed 's/\<CTAGS\>/ELVTAGS/g; s/ctags\>/elvtags/g; s/ant" elvtags/ant" ctags/' doc/ctags.man >doc/elvtags.man
29   /usr/bin/make || return 1
31   /bin/mkdir -p $pkgdir/usr/bin/
32   for i in elvis ref elvtags elvfmt; do
33       install -s -m755 $i $pkgdir/usr/bin/
34   done
36   cd $srcdir/elvis-$pkgver/data/
37   /bin/mkdir -p $pkgdir/usr/share/elvis/
38   cp -r * $pkgdir/usr/share/elvis/
40   cd $srcdir/elvis-$pkgver/doc/
41   /bin/mkdir -p $pkgdir/usr/share/man/man1/
42   for i in elvis ref elvtags elvfmt; do
43       mv $i.man $i.1
44       gzip $i.1
45       install -m644 $i.1.gz $pkgdir/usr/share/man/man1/
46   done