summaryrefslogtreecommitdiff
path: root/user/perl-module-build-xsutil/APKBUILD
blob: c7d519f0c0a0ae9d1007ad67c920951ee1c7f59f (plain) (blame)
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
# Contributor: Dan Theisen <djt@hxx.in>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-module-build-xsutil
_pkgreal=Module-Build-XSUtil
_author=HIDEAKIO
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.19
pkgrel=0
pkgdesc="A Module::Build class for building XS modules"
url="https://metacpan.org/pod/Module::Build::XSUtil"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-1.0+"
depends="perl perl-module-build perl-devel-checkcompiler"
checkdepends="perl-capture-tiny perl-cwd-guard perl-file-copy-recursive-reduced"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	perl Build.PL installdirs=vendor
	./Build
}

check() {
	./Build test
}

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

sha512sums="187f504c3f26d15b96cdc5b682d3487a31cf124475160b7fe5dce727d5d6ec5de5a58d09535adb62a1a95b3030fb62951b2cc0eca860eb03c66a48042cea8819  Module-Build-XSUtil-0.19.tar.gz"