updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / extract_url / PKGBUILD
blob43c5e9f5b57aa118f973564f100359176ba8e661
1 # Maintainer: Byron Clark <byron@theclarkfamily.name>
2 pkgname=extract_url
3 pkgver=1.5.4
4 pkgrel=2
5 pkgdesc="A Perl script that extracts URLs from correctly-encoded MIME email messages"
6 arch=('any')
7 url="http://www.memoryhole.net/~kyle/extract_url/"
8 license=('BSD')
9 depends=('perl>=5.10.0' 'perl-mime-tools' 'perl-html-parser')
10 optdepends=('perl-curses-ui: curses interface'
11             'perl-uri-find: enhanced uri extraction')
12 source=(http://www.memoryhole.net/~kyle/$pkgname/$pkgname.pl)
13 md5sums=('815b390c31bb0e17712ceff5e97555b5')
15 package() {
16   install -d -m 0755 $pkgdir/usr/bin
17   install -m 0755 $srcdir/$pkgname.pl $pkgdir/usr/bin/$pkgname
18   install -d -m 0755 $pkgdir/usr/share/licenses/$pkgname
19   sed -n -e '/^# Copyright/,/^$/ s/^# \?// p' < $srcdir/$pkgname.pl > $pkgdir/usr/share/licenses/$pkgname/LICENSE
20   chmod 0644 $pkgdir/usr/share/licenses/$pkgname/LICENSE
23 # vim:set ts=2 sw=2 et: