aboutsummaryrefslogblamecommitdiffstats
path: root/testing/perl-net-mpd/APKBUILD
blob: 22932cd04c2b24e89d9b7777adcb7cbda485ae27 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                                                      
             


                    
        



                                           

                                    























                                                                                                                                                                  
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=perl-net-mpd
_pkgreal=Net-MPD
pkgver=0.07
pkgrel=1
pkgdesc="Communicate with an MPD server"
url="https://metacpan.org/release/Net-MPD/"
arch="noarch"
license="MIT"
depends="perl mpd"
makedepends="perl-module-build-tiny"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/A/AB/ABERNDT/Net-MPD-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL="--skipdeps" \
		PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
		PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
		MODULEBUILDRC=/dev/null CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')

	perl Build.PL
	./Build
}

check() {
	./Build test
}

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

sha512sums="8864cfcfa5fa22ccc32feea73644217611957aeb5fe2f3b35c389f8e8488887d589bc3f2ac794e4374bbe75134e60832d920dba22f31fbe513e688da70fec1e2  Net-MPD-0.07.tar.gz"