blob: 365709f1d099e090da892dfc08709c5b0d74c9c3 (
plain)
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
36
37
|
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=perl-net-mpd
_pkgreal=Net-MPD
pkgver=0.07
pkgrel=0
pkgdesc="Communicate with an MPD server"
url="https://metacpan.org/release/Net-MPD/"
arch="noarch"
license="MIT"
depends="mpd"
makedepends="perl-dev 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"
|