blob: a25133f1e6957c49591c4d213cce833416856711 (
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
|
# Maintainer: 3ED <krzysztof1987 at gmail dot com>
#
pkgname=perl-uri-magnet
_lastauthor=G/GA/GARU
_pkgname=URI-magnet
pkgver=0.03
pkgrel=1
pkgdesc='Magnet URI scheme'
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl-uri')
makedepends=('perl-extutils-makemaker')
url="http://search.cpan.org/dist/${_pkgname}/"
source=(http://search.cpan.org/CPAN/authors/id/${_lastauthor}/${_pkgname}-${pkgver}.tar.gz)
sha256sums=('02ecc4c54bda97b6f95b50826b4d0a5de29b0dd621a2e7d94367dff8c9a81259')
build() {
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL="--skipdeps" \
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null
cd ${_pkgname}-${pkgver}
perl Makefile.PL
make
}
check() {
cd ${_pkgname}-${pkgver}
make test
}
package() {
cd ${_pkgname}-${pkgver}
make install
}
|