summaryrefslogtreecommitdiff
path: root/user/perl-struct-dumb/APKBUILD
blob: be425e8f4adee0f35387c77c923e0ca242afac25 (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-struct-dumb
_pkgreal=Struct-Dumb
_author=PEVANS
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.13
pkgrel=0
pkgdesc="Perl utilities for lightweight record-like structures"
url="https://metacpan.org/pod/Struct::Dumb"
arch="noarch"
license="GPL-1.0+ OR Artistic-1.0-Perl"
depends="perl"
checkdepends="perl-test-fatal"
makedepends="perl-module-build"
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="5fb5132f4696072d7682e7c5bac91921f2ce8c32171cbfddbad7566022d6d0f2257ac9679969727b56e5cbb561b81d260cd2a7be5d71ebffbccc5b9ecba2a8d6  Struct-Dumb-0.13.tar.gz"