aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-x10
diff options
context:
space:
mode:
Diffstat (limited to 'main/perl-x10')
-rw-r--r--main/perl-x10/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/main/perl-x10/APKBUILD b/main/perl-x10/APKBUILD
new file mode 100644
index 0000000000..0d072e2947
--- /dev/null
+++ b/main/perl-x10/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-x10
+_realname=X10
+pkgver=0.03
+pkgrel=1
+pkgdesc="Perl module to control X10 devices"
+url="http://search.cpan.org/~robf/X10-0.03/"
+arch="noarch"
+license="unknown"
+depends="perl"
+makedepends="perl-dev perl-astro-suntime perl-time-parsedate perl-device-serialport"
+install=
+subpackages=""
+source="http://search.cpan.org/CPAN/authors/id/R/RO/ROBF/$_realname-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_realname-$pkgver"
+
+build() {
+ cd $_builddir
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
+ make && make test || return 1
+}
+
+package() {
+ cd $_builddir
+ make DESTDIR="$pkgdir" install
+ # creates file collision among perl modules
+ find "$pkgdir" -name perllocal.pod -delete
+
+}
+
+md5sums="056b3d98fab545865148b948de6784c7 X10-0.03.tar.gz"