aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-text-bibtex/APKBUILD
blob: 691a2568022570de8fa6c89546b2434dcd1350c3 (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
38
39
40
41
42
43
44
45
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-text-bibtex
_pkgreal=Text-BibTeX
pkgver=0.76
pkgrel=0
pkgdesc="Perl module for Text-BibTeX"
url="http://search.cpan.org/dist/Text-BibTeX/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="perl-module-build perl-config-autoconf perl-extutils-libbuilder perl-scalar-list-utils"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/A/AM/AMBS/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare || return 1

	cd "$builddir"
	if [ -e Build.PL ]; then
		perl Build.PL installdirs=vendor || return 1
	else
		PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	fi
}

build() {
    cd "$builddir"
    export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
    ./Build && ./Build test
}

package() {
    cd "$builddir"
    ./Build install destdir="$pkgdir" || return 1
    find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="02a8df203a8e75922c8c2b5924bff741  Text-BibTeX-0.76.tar.gz"
sha256sums="79d6517f7561c155157ea7b60e5e4ead01dc56f612dd9cf2b81f35f444023be7  Text-BibTeX-0.76.tar.gz"
sha512sums="a223f7ecc6c08b17076b515c0eb47f70d78951857f6a2367568c5af5c436eba595de8e3c9acec9c0bc8ca758739ae21a11f616c0c5ebedb5d1858c2d719085e5  Text-BibTeX-0.76.tar.gz"