summaryrefslogtreecommitdiff
path: root/user/perl-commandable/APKBUILD
blob: 3d8ab38c80ab6bf874ebd523a028392d95f80c66 (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: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-commandable
_pkgreal=Commandable
_author=PEVANS
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.07
pkgrel=0
pkgdesc="Represents one invocation of a CLI command"
url="https://metacpan.org/pod/Commandable"
arch="noarch"
license="GPL-1.0+ OR Artistic-1.0-Perl"
depends="perl"
checkdepends="perl-test-fatal perl-test-warnings"
makedepends="perl-module-build perl-module-pluggable"
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 --destdir="$pkgdir" --prefix="/usr" --installdirs="vendor"
        ./Build
}

check() {
        ./Build test
}

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

sha512sums="5003a9b5289aa50d68d5e9b2673e54400da60b98a8570fa3b414c67f34aff1e14edff6e4030e52aaf833113a290d3fdd5e8b06ee0e6552bb623142557ca6d583  Commandable-0.07.tar.gz"