Commit a76634ee authored by J0WI's avatar J0WI Committed by Leo

main/perl-control-x10: modernize

parent 8c15987c
......@@ -3,26 +3,30 @@
pkgname=perl-control-x10
_realname=ControlX10-CM11
pkgver=2.09
pkgrel=3
pkgrel=4
pkgdesc="Perl extension for X10 'ActiveHome' Controller"
url="http://search.cpan.org/~bbirth/ControlX10-CM11-2.09/"
url="https://metacpan.org/release/ControlX10-CM11"
arch="noarch"
license="GPL PerlArtistic"
depends="perl"
makedepends="perl-dev"
install=
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/B/BB/BBIRTH/$_realname-$pkgver.tar.gz"
_builddir="$srcdir/$_realname-$pkgver"
builddir="$srcdir/$_realname-$pkgver"
build() {
cd $_builddir
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
make && make test || return 1
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
make test
}
package() {
cd $_builddir
make DESTDIR="$pkgdir" install
# creates file collision among perl modules
find "$pkgdir" -name perllocal.pod -delete
}
sha512sums="c13f275c6673a0a6b6b3eafa353e7d9c36a651359247abdf5308870ccbf5528b7d57fed57ce8dea2f9801ce1725835f16f1091705a3c4bd9c571e4690de5e450 ControlX10-CM11-2.09.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment