From acdd3cca6c20f012cb031afe12576f5e470fc2d9 Mon Sep 17 00:00:00 2001 From: Michael Aldridge Date: Wed, 7 Sep 2016 01:11:28 -0500 Subject: [PATCH] New package: heyu-2.10 Closes: #4728 [via git-merge-pr] --- srcpkgs/heyu/template | 46 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 srcpkgs/heyu/template diff --git a/srcpkgs/heyu/template b/srcpkgs/heyu/template new file mode 100644 index 00000000000..cce43e8cfdf --- /dev/null +++ b/srcpkgs/heyu/template @@ -0,0 +1,46 @@ +# Template file for 'heyu' +pkgname=heyu +version=2.10 +revision=1 +build_style=configure +configure_script="./Configure" +configure_args="linux" +short_desc="X10 automation for Linux" +maintainer="Michael Aldridge " +license="GPL-3" +homepage="http://www.heyu.org" +distfiles="https://github.com/HeyuX10Automation/heyu/archive/v${version}.tar.gz" +checksum=2893b2b68470c2a3f4a35bb21b9466ba93de67a6dddd2d035fa1cfab9f79f25f + +case $XBPS_TARGET_MACHINE in + *-musl) + broken=https://s3.amazonaws.com/archive.travis-ci.org/jobs/159799132/log.txt + ;; +esac + +pre_configure() { + sed -i 's:local/::' Configure + sed -i 's:/man:/share/man:' Configure + sed -i 's:gcc:${CC}:' Configure + sed -i 's:\$(DFLAGS):\$(DFLAGS) \${CFLAGS}:' Configure +} + +do_install() { + # The provided 'make install' target is beyond patching + vbin heyu + + vmkdir etc/heyu + vinstall x10config.sample 0666 etc/heyu x10.conf + + vman heyu.1 + vman x10config.5 + vman x10sched.5 + vman x10scripts.5 + vman x10cm17a.5 + vman x10aux.5 + vman x10rfxsensors.5 + vman x10rfxmeters.5 + vman x10digimax.5 + vman x10oregon.5 + vman x10kaku.5 +}