aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-control-x10/APKBUILD
blob: cb6a61bec8729fd7857f458cc6bbfa6a3eae6d95 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-control-x10
_realname=ControlX10-CM11
pkgver=2.09
pkgrel=4
pkgdesc="Perl extension for X10 'ActiveHome' Controller"
url="https://metacpan.org/release/ControlX10-CM11"
arch="noarch"
license="GPL PerlArtistic"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/B/BB/BBIRTH/$_realname-$pkgver.tar.gz"
builddir="$srcdir/$_realname-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	# creates file collision among perl modules
	find "$pkgdir" -name perllocal.pod -delete
}

sha512sums="c13f275c6673a0a6b6b3eafa353e7d9c36a651359247abdf5308870ccbf5528b7d57fed57ce8dea2f9801ce1725835f16f1091705a3c4bd9c571e4690de5e450  ControlX10-CM11-2.09.tar.gz"