diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-09-30 07:42:53 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-09-30 07:42:53 +0000 |
commit | 6861ecf094bb7090efa45976e4f945da3faa9a43 (patch) | |
tree | 34008385dc4289119a7ca216cb409729be0c6ffa | |
parent | f227eb4c61ab1cceaa050a03a19480131dd9cde9 (diff) | |
download | alpine_aports-6861ecf094bb7090efa45976e4f945da3faa9a43.tar.bz2 alpine_aports-6861ecf094bb7090efa45976e4f945da3faa9a43.tar.xz alpine_aports-6861ecf094bb7090efa45976e4f945da3faa9a43.zip |
main/perl-file-sharedir-install: new aport
Install shared files
http://search.cpan.org/dist/File-ShareDir-Install/
-rw-r--r-- | main/perl-file-sharedir-install/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/main/perl-file-sharedir-install/APKBUILD b/main/perl-file-sharedir-install/APKBUILD new file mode 100644 index 0000000000..0093eac155 --- /dev/null +++ b/main/perl-file-sharedir-install/APKBUILD | |||
@@ -0,0 +1,41 @@ | |||
1 | # Automatically generated by apkbuild-cpan, template 1 | ||
2 | # Contributor: Natanael Copa <ncopa@alpinelinux.org> | ||
3 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> | ||
4 | pkgname=perl-file-sharedir-install | ||
5 | _pkgreal=File-ShareDir-Install | ||
6 | pkgver=0.09 | ||
7 | pkgrel=0 | ||
8 | pkgdesc="Install shared files" | ||
9 | url="http://search.cpan.org/dist/File-ShareDir-Install/" | ||
10 | arch="noarch" | ||
11 | license="GPL PerlArtistic" | ||
12 | cpandepends="" | ||
13 | cpanmakedepends=" " | ||
14 | depends="$cpandepends" | ||
15 | makedepends="perl-dev $cpanmakedepends" | ||
16 | subpackages="$pkgname-doc" | ||
17 | source="http://search.cpan.org/CPAN/authors/id/G/GW/GWYN/$_pkgreal-$pkgver.tar.gz" | ||
18 | |||
19 | _builddir="$srcdir/$_pkgreal-$pkgver" | ||
20 | |||
21 | prepare() { | ||
22 | cd "$_builddir" | ||
23 | export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` | ||
24 | PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor | ||
25 | } | ||
26 | |||
27 | build() { | ||
28 | cd "$_builddir" | ||
29 | export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` | ||
30 | make && make test | ||
31 | } | ||
32 | |||
33 | package() { | ||
34 | cd "$_builddir" | ||
35 | make DESTDIR="$pkgdir" install || return 1 | ||
36 | find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete | ||
37 | } | ||
38 | |||
39 | md5sums="508fd1f977f2e160e7e756c9c73868df File-ShareDir-Install-0.09.tar.gz" | ||
40 | sha256sums="ed4fdbbd691726d45b78538c63eb1b08a7b0853cf07ec327256d0dd590acc0dc File-ShareDir-Install-0.09.tar.gz" | ||
41 | sha512sums="11adcce3d868da71987cb03eaef34e38bb9dfc62dcec26288f088eecc039f0c5e1f6a49fa0103359ecaf57a9d4ac51a967f0968a31cfbe3db6bdfae70bcbb626 File-ShareDir-Install-0.09.tar.gz" | ||