updated on Sat Jan 21 12:00:39 UTC 2012
[aur-mirror.git] / vfu-utf / PKGBUILD
blobc9506e10b85e01dcb4356720426591f3ff1b3cb7
1 # Contributor: Evgeny Grablyk <evgeny.grablyk@gmail.com>
2 pkgname=vfu-utf
3 pkgver=4.10
4 pkgrel=1
5 pkgdesc="VFU is console (text mode) file manager. Patched for Unicode (UTF-8) support."
6 arch=('i686' 'x86_64')
7 url="http://cade.datamax.bg/vfu/"
8 license=('GPL')
9 depends=('ncurses' 'pcre')
10 optdepends=('perl: for the rx_* archiving utilities'
11             'rpmextract: for rx_rpm'
12             'unrar: for rx_rar'
13             'unzip: for rx_zip')
14 replaces=('vfu')
15 backup=('etc/vfu/vfu.conf')
16 install=('vfu.install')
17 options=('strip')
18 source=(http://cade.datamax.bg/vfu/vfu-$pkgver.tar.gz \
19         vfu-$pkgver-unicode.patch)
20 md5sums=('73e17895768b6585806e61dc64ded544'
21          '218b3674f660dc9c41dafdbb4a5ad44d')
23 build() {
24   cd $startdir/src/vfu-$pkgver
26   # patch for unicode (utf-8) support.
27   patch -p1 -i ../vfu-$pkgver-unicode.patch
29   make CCDEF="$CFLAGS -D_FILE_OFFSET_BITS=64" || return 1
30   
31   ./build.docs  || return 1
32   gzip -9 vfu.1 || return 1
33   install -d $startdir/pkg/usr/bin/             || return 1
34   install -d $startdir/pkg/usr/man/man1/        || return 1
35   install -d $startdir/pkg/usr/bin/             || return 1
36   install vfu/vfu $startdir/pkg/usr/bin/        || return 1
37   install vfu.1.gz $startdir/pkg/usr/man/man1/  || return 1
38   install rx/rx_* $startdir/pkg/usr/bin/        || return 1