# Automatically generated by apkbuild-cpan, template 3
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=perl-code-tidyall-plugin-uniquelines
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Code-TidyAll-Plugin-UniqueLines
pkgver=0.000003
pkgrel=1
pkgdesc="Remove duplicate lines from a file"
url="https://metacpan.org/release/Code-TidyAll-Plugin-UniqueLines/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-moo perl-code-tidyall"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/Code-TidyAll-Plugin-UniqueLines-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

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

sha512sums="
ca8a45acdccf8121245c504675619f35160be2ec3593a5ca09253635c219ac5827ef3999029381c9cf173141c9cbc75b34ec02f617a4a126e2c2e80feafa7bd3  Code-TidyAll-Plugin-UniqueLines-0.000003.tar.gz
"
