net-im/purple-gowhatsapp: initial import

This commit is contained in:
Julian Ospald 2019-11-25 12:29:07 +08:00
parent c5233d46b1
commit 47dfd9d03b
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
1 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,37 @@
# Copyright 2019 Julian Ospald <hasufell@posteo.de>
# 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
}