aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-text-bibtex/APKBUILD
blob: 10869c51a4c997df1206cb5e63a3f5af4969f760 (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
# 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.88
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
	cd "$builddir"
	perl Build.PL installdirs=vendor
}

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

check() {
        cd "$builddir"
        ./Build test
}

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

sha512sums="63425590feb479b43b70605144edad400650471ddefbc3dc40f5bd1b6c78e5e50eabaf60501e469de520e36221bebd1806eae8d45124b59feef9446fc3257d18  Text-BibTeX-0.88.tar.gz"