heyu: Add package (#1505)
authorStephen <stephengroat@users.noreply.github.com>
Wed, 20 Sep 2017 19:54:14 +0000 (12:54 -0700)
committerFredrik Fornwall <fredrik@fornwall.net>
Wed, 20 Sep 2017 19:54:14 +0000 (21:54 +0200)
packages/heyu/build.sh [new file with mode: 0644]

diff --git a/packages/heyu/build.sh b/packages/heyu/build.sh
new file mode 100644 (file)
index 0000000..8a155db
--- /dev/null
@@ -0,0 +1,11 @@
+TERMUX_PKG_HOMEPAGE=http://www.heyu.org/
+TERMUX_PKG_DESCRIPTION="A text-based console program for remotely controlling lights and appliances in the home or office"
+TERMUX_PKG_VERSION=2.11-rc2
+TERMUX_PKG_SRCURL=https://github.com/HeyuX10Automation/heyu/archive/v$TERMUX_PKG_VERSION.tar.gz
+TERMUX_PKG_FOLDERNAME=heyu-${TERMUX_PKG_VERSION}
+
+termux_step_pre_configure () {
+       # rindex is an obsolete version of strrchr which is not available in Android:
+       CFLAGS+=" -Drindex=strrchr"
+       LDFLAGS+=" -llog"
+}