summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0a5f647f2e7b50de3f5943f985bb4919d403f5a5 (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
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>

pkgname=urlview
pkgver=0.9
pkgrel=9
_patchlevel=19
pkgdesc="A curses URL parser for text files"
arch=('i686' 'x86_64')
url="http://packages.qa.debian.org/u/urlview.html"
license=('GPL')
depends=('bash' 'ncurses')
makedepends=('patch' 'automake-1.11' 'autoconf')
source=(http://ftp.debian.org/debian/pool/main/u/urlview/${pkgname}_$pkgver.orig.tar.gz \
        http://ftp.debian.org/debian/pool/main/u/urlview/${pkgname}_$pkgver-$_patchlevel.diff.gz)
sha256sums=('746ff540ccf601645f500ee7743f443caf987d6380e61e5249fc15f7a455ed42'
            '056883c17756f849fb9235596d274fbc5bc0d944fcc072bdbb13d1e828301585')

prepare() {
  cd ${srcdir}/$pkgname-$pkgver.orig
  patch -Np1 -i ${srcdir}/${pkgname}_${pkgver}-$_patchlevel.diff
  aclocal-1.11
}

build() {
  cd ${srcdir}/$pkgname-$pkgver.orig

  ./configure --prefix=/usr
  make
}

package() {
  cd ${srcdir}/$pkgname-$pkgver.orig
 
  install -d ${pkgdir}/etc/urlview ${pkgdir}/usr/share/man/man1
  make prefix=${pkgdir}/usr mandir=${pkgdir}/usr/share/man install
 
  install -D -m755 url_handler.sh ${pkgdir}/etc/urlview/url_handler.sh
  install -D -m644 sample.urlview ${pkgdir}/etc/urlview/system.urlview
  install -d ${pkgdir}/usr/bin
  ln -fs /etc/urlview/url_handler.sh ${pkgdir}/usr/bin/url_handler.sh
}