New package: eduvpn-common-1.1.2
This commit is contained in:
parent
bcb4a0f768
commit
964630d2cb
1 changed files with 35 additions and 0 deletions
35
srcpkgs/eduvpn-common/template
Normal file
35
srcpkgs/eduvpn-common/template
Normal file
|
@ -0,0 +1,35 @@
|
|||
# Template file for 'eduvpn-common'
|
||||
pkgname=eduvpn-common
|
||||
version=1.1.2
|
||||
revision=1
|
||||
build_style=go
|
||||
go_import_path=github.com/eduvpn/eduvpn-common
|
||||
hostmakedepends="python3-setuptools python3-wheel"
|
||||
short_desc="Code to be shared between eduVPN clients"
|
||||
maintainer="John <me@johnnynator.dev>"
|
||||
license="MIT"
|
||||
homepage="https://www.eduvpn.org/"
|
||||
distfiles="https://github.com/eduvpn/eduvpn-common/releases/download/${version}/eduvpn-common-${version}.tar.xz"
|
||||
checksum=22e4c21b70ccd94ca293bbb65ae01aefa7fa328cf204416e3ac8da9741a8a2ce
|
||||
|
||||
do_build() {
|
||||
go build -x -o libeduvpn_common-${version}.so \
|
||||
-mod="vendor" -modcacherw \
|
||||
-buildmode=c-shared -ldflags "${go_ldflags}" \
|
||||
${go_import_path}/exports
|
||||
mv libeduvpn_common-${version}.h eduvpn_common.h
|
||||
#go install -x -p "$XBPS_MAKEJOBS" -ldflags "${go_ldflags}" \
|
||||
# -mod="vendor" -modcacherw \
|
||||
# ${go_import_path}/cmd/cli
|
||||
cd wrappers/python
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vlicense LICENSE
|
||||
vinstall libeduvpn_common-${version}.so 755 /usr/lib
|
||||
vinstall eduvpn_common.h 644 /usr/include
|
||||
#vbin ${GOPATH}/bin/cli eduvpn-cli
|
||||
cd wrappers/python
|
||||
python3 setup.py install --prefix=/usr --root=${DESTDIR}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue