summaryrefslogtreecommitdiffstats
path: root/perl-universal-require/PKGBUILD
blob: 31d946729f70ed4b511b77fd1c5dc6bdf6f478cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Contributor: Marvin Lampe <marvin.lampe@gmx.de>
pkgname=perl-universal-require
pkgver=0.13
pkgrel=1
pkgdesc='UNIVERSAL::require - require() modules from a variable'
arch=('x86_64' 'i686')
url='http://search.cpan.org/~mschwern/UNIVERSAL-require-0.13/lib/UNIVERSAL/require.pm'
license=('GPL' 'Artistic License')
makedepends=('perl')
source=(http://search.cpan.org/CPAN/authors/id/M/MS/MSCHWERN/UNIVERSAL-require-${pkgver}.tar.gz)
md5sums=('e6ea431fac9524077414d531a8cc203c') 

build() {
  cd ${srcdir}/UNIVERSAL-require-${pkgver} || return 1
  perl Makefile.PL || return 1
  make || return 1
  mkdir -p ${pkgdir}/usr/lib/perl5/vendor_perl/UNIVERSAL || return 1
  mkdir -p ${pkgdir}/usr/share/man/man3 || return 1
  cp ${srcdir}/UNIVERSAL-require-${pkgver}/blib/lib/UNIVERSAL/require.pm ${pkgdir}/usr/lib/perl5/vendor_perl/UNIVERSAL || return 1
  cp ${srcdir}/UNIVERSAL-require-${pkgver}/blib/man3/UNIVERSAL::require.3pm ${pkgdir}/usr/share/man/man3
}

# vim:set ts=2 sw=2 et: