summaryrefslogtreecommitdiff
path: root/user/perl-object-pad/APKBUILD
blob: 6c22caca991d806b1a26babe60f9cbe0209bf3ae (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-object-pad
_pkgreal=Object-Pad
_author=PEVANS
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.803
pkgrel=0
pkgdesc="Simple syntax for lexical field-based objects"
url="https://metacpan.org/pod/Object::Pad"
arch="all"
license="GPL-1.0+ OR Artistic-1.0-Perl"
depends="perl"
checkdepends="perl-test2-suite perl-test-fatal perl-test-refcount"
makedepends="perl-dev perl-module-build perl-xs-parse-keyword perl-xs-parse-sublike"
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="a6dc6d7254f99ae5cd50a9bdd5f243db9e1ec7c19a09fa742a15505686d5e73f6737c0dd8b091486b618b9c68c672feae2f4205a92defa36711c1233d122ebb5  Object-Pad-0.803.tar.gz"