updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / urlview / PKGBUILD
blobf322b4afda722661b1d5bccc71d8758ea5c7d71d
1 # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
3 pkgname=urlview
4 pkgver=0.9
5 pkgrel=7
6 _patchlevel=18.1
7 pkgdesc="A curses URL parser for text files"
8 arch=('i686' 'x86_64')
9 url="http://packages.qa.debian.org/u/urlview.html"
10 license=('GPL')
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')
17 build() {
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
24   make
27 package() {
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