summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 89fc48923c591325ba11fc2a9754b85772c48286 (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
# Maintainer: jsteel <mail at jsteel dot org>
# Contributor: Petrenko Alexey <alexey-p at uralweb dot ru>

pkgname=perl-lwp-protocol-socks
pkgver=1.7
pkgrel=1
pkgdesc='Adds support for the socks protocol and proxy facility'
url='http://search.cpan.org/~scr/LWP-Protocol-socks-1.3/'
depends=('perl-libwww' 'perl-io-socket-ssl' 'perl-io-socket-socks' 'perl-lwp-protocol-https')
arch=('any')
license=('GPL')
source=(http://search.cpan.org/CPAN/authors/id/S/SC/SCR/LWP-Protocol-socks-$pkgver.tar.gz)
md5sums=('1f2031d0838d4c04babfb85f767d9ae0')

build() {
  cd  "$srcdir/LWP-Protocol-socks-$pkgver"

  perl Makefile.PL INSTALLDIRS=vendor

  make
}

check() {
  cd  "$srcdir/LWP-Protocol-socks-$pkgver"

  make test
}

package() {
  cd  "$srcdir/LWP-Protocol-socks-$pkgver"

  make DESTDIR="$pkgdir"/ install

  # Removing unnecessary stuff
  find "$pkgdir" -type f -name 'perllocal.pod' -delete;
  find "$pkgdir" -type f -name '.packlist' -delete;
}