mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
testing/perl-text-brew: new aport
http://search.cpan.org/dist/Text-Brew/
This commit is contained in:
parent
8169f9cdf1
commit
360b7e2eb5
48
testing/perl-text-brew/APKBUILD
Normal file
48
testing/perl-text-brew/APKBUILD
Normal file
@ -0,0 +1,48 @@
|
||||
# Automatically generated by apkbuild-cpan, template 2
|
||||
# Contributor: Timo Teräs <timo.teras@iki.fi>
|
||||
# Maintainer: Timo Teräs <timo.teras@iki.fi>
|
||||
pkgname=perl-text-brew
|
||||
_pkgreal=Text-Brew
|
||||
pkgver=0.02
|
||||
pkgrel=0
|
||||
pkgdesc="unknown"
|
||||
url="http://search.cpan.org/dist/Text-Brew/"
|
||||
arch="noarch"
|
||||
license="GPL PerlArtistic"
|
||||
cpandepends=""
|
||||
cpanmakedepends=""
|
||||
cpancheckdepends=""
|
||||
depends="$cpandepends"
|
||||
makedepends="perl-dev $cpanmakedepends"
|
||||
checkdepends="$cpancheckdepends"
|
||||
subpackages="$pkgname-doc"
|
||||
source="http://search.cpan.org/CPAN/authors/id/K/KC/KCIVEY/$_pkgreal-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
|
||||
prepare() {
|
||||
default_prepare || return 1
|
||||
|
||||
cd "$builddir"
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
make DESTDIR="$pkgdir" install || return 1
|
||||
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$builddir"
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
make test
|
||||
}
|
||||
|
||||
sha512sums="6748a30fdff84427d5846b926ffcd25a4e9f15ba0f572c6f0516ba92552e6172ed536ee35ef922a86637efe9a5b04b470d5734a715b28d4ec120d124050f3877 Text-Brew-0.02.tar.gz"
|
||||
Loading…
x
Reference in New Issue
Block a user