From 47dfd9d03b921c1c14b8f56645033801dc0b1aa5 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Mon, 25 Nov 2019 12:29:07 +0800 Subject: [PATCH] net-im/purple-gowhatsapp: initial import --- .../purple-gowhatsapp-scm.exheres-0 | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 packages/net-im/purple-gowhatsapp/purple-gowhatsapp-scm.exheres-0 diff --git a/packages/net-im/purple-gowhatsapp/purple-gowhatsapp-scm.exheres-0 b/packages/net-im/purple-gowhatsapp/purple-gowhatsapp-scm.exheres-0 new file mode 100644 index 00000000..e6cb8493 --- /dev/null +++ b/packages/net-im/purple-gowhatsapp/purple-gowhatsapp-scm.exheres-0 @@ -0,0 +1,37 @@ +# Copyright 2019 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 + +require github [ user="hoehermann" ] + +SUMMARY="Pidgin/libpurple plugin for WhatsApp Web" + +LICENCES="GPL-3" +SLOT="0" +PLATFORMS="~amd64" +MYOPTIONS="" + +DEPENDENCIES=" + build: + dev-lang/go + virtual/pkg-config + build+run: + dev-libs/glib:2 + net-im/pidgin +" + +BUGS_TO="hasufell@posteo" + +src_prepare() { + default + + edo sed -i -e \ + "s/\$(GO) build/\$(GO) build -ldflags=\"-extar \/usr\/host\/bin\/$(exhost --target)-ar\"/" \ + Makefile +} + +src_compile() { + export GOPATH="${WORK}"/.gopath + esandbox disable_net + default + esandbox enable_net +}