1 # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
7 pkgdesc="A curses URL parser for text files"
9 url="http://packages.qa.debian.org/u/urlview.html"
11 depends=('bash' 'ncurses')
12 source=(http://ftp.debian.org/debian/pool/main/u/urlview/${pkgname}_$pkgver.orig.tar.gz \
13 http://ftp.debian.org/debian/pool/main/u/urlview/${pkgname}_$pkgver-$_patchlevel.diff.gz)
14 md5sums=('4f253c82b59136181b1f0bf218ef059d'
15 '086e93a4a93dd989751e471f3f2d1e47')
18 cd ${srcdir}/$pkgname-$pkgver.orig
20 patch -Np1 -i ${srcdir}/${pkgname}_${pkgver}-$_patchlevel.diff
22 ./configure --prefix=/usr
23 install -d ${pkgdir}/etc/urlview ${pkgdir}/usr/share/man/man1
28 cd ${srcdir}/$pkgname-$pkgver.orig
30 make prefix=${pkgdir}/usr mandir=${pkgdir}/usr/share/man install
32 install -D -m755 url_handler.sh ${pkgdir}/etc/urlview/url_handler.sh
33 install -D -m644 sample.urlview ${pkgdir}/etc/urlview/system.urlview
34 install -d ${pkgdir}/usr/bin
35 ln -fs /etc/urlview/url_handler.sh ${pkgdir}/usr/bin/url_handler.sh