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 +}