summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c21d9c2f7aa8f0bf383aac198f5bc08e384f23a8 (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
pkgname=perl-finance-quote-git
pkgver=v1.38.r12.gb8e1d58
pkgrel=1
pkgdesc='Perl/CPAN Module Finance::Quote : Fetch stock prices over the Internet'
arch=(any)
url='https://github.com/finance-quote/finance-quote'
license=('GPL' 'PerlArtistic')
depends=('perl-html-tree' 'perl-html-tableextract' 'perl-crypt-ssleay'
	 'perl-libwww' 'perl-date-calc' 'perl-json' 'perl-datetime' 'perl-cgi')
conflicts=('perl-finance-quote')
source=('git+https://github.com/finance-quote/finance-quote.git'
        'Makefile.PL')
md5sums=('SKIP'
         'fc0be335a2e4518094a09e787c095543')

pkgver() {
  cd "${srcdir}/finance-quote"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd "${srcdir}/finance-quote"
  cp "../Makefile.PL" .
}

build() {
  cd "${srcdir}/finance-quote"
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "${srcdir}/finance-quote"
  make install DESTDIR="${pkgdir}"
  find ${pkgdir} -name ".packlist" -delete
  find ${pkgdir} -name "*.pod" -delete
}