38 lines
734 B
Bash
38 lines
734 B
Bash
# 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
|
|
}
|