summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 07a8870863845a939a70e5da2ee1c1b05c2e6bee (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
# Maintainer: Matthew Hague <matthewhague at zoho dot com>

pkgname=perl-extract-url-git
pkgver=1.6.2.r0.gc38d2c9
pkgrel=3
pkgdesc='Alternative or preprocessor for urlview, primarily for use with mutt'
arch=(any)
url='http://www.memoryhole.net/~kyle/extract_url'
replaces=(extracturl-git)
conflicts=(extracturl-git perl-extract-url)
provides=(perl-extract-url)
license=('BSD-2-Clause (simplified)')
depends=('perl'
         'perl-mime-tools'
         'perl-html-parser')
optdepends=('perl-curses-ui: allows it to fully replace urlview'
            'perl-uri-find: for recognising more exotic urls')
source=(git+https://github.com/m3m0ryh0l3/extracturl.git)
sha256sums=('SKIP')

pkgver() {
  cd $srcdir/extracturl
  # cutting off 'v' prefix that presents in the git tag
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd $srcdir/extracturl
  make
  make  DESTDIR=$pkgdir install 
}