mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-03 19:32:57 +02:00
wtplan: fix cross, enable pie
This commit is contained in:
parent
9d2896ee80
commit
42e8f1057a
1 changed files with 14 additions and 4 deletions
|
@ -1,12 +1,10 @@
|
||||||
# Template file for 'wtplan'
|
# Template file for 'wtplan'
|
||||||
pkgname=wtplan
|
pkgname=wtplan
|
||||||
version=0.1
|
version=0.1
|
||||||
revision=1
|
revision=2
|
||||||
nocross="runtime/cgo: armv7l-linux-musleabihf-gcc: error: unrecognized command line option '-m64"
|
archs="aarch64* armv[567]* i686* x86_64* ppc64le*"
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
hostmakedepends="go"
|
hostmakedepends="go"
|
||||||
nopie="golang"
|
|
||||||
nostrip="golang"
|
|
||||||
short_desc="Calendar program with terminal and web interfaces and git integration"
|
short_desc="Calendar program with terminal and web interfaces and git integration"
|
||||||
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
|
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
|
@ -14,6 +12,18 @@ homepage="https://github.com/kjellwinblad/wtplan/"
|
||||||
distfiles="https://github.com/kjellwinblad/wtplan/archive/${version}.tar.gz"
|
distfiles="https://github.com/kjellwinblad/wtplan/archive/${version}.tar.gz"
|
||||||
checksum=31c66181f815889828eb2bd3739d6b23582ec75a5a8d6c6bf76c2a6679112bb4
|
checksum=31c66181f815889828eb2bd3739d6b23582ec75a5a8d6c6bf76c2a6679112bb4
|
||||||
|
|
||||||
|
do_build() {
|
||||||
|
export GOPATH=$(pwd)
|
||||||
|
export VERSIONSTR=$version
|
||||||
|
go generate wtplan
|
||||||
|
go generate wtplan-web
|
||||||
|
. $XBPS_COMMONDIR/environment/build-style/go.sh
|
||||||
|
GOPATH=$(pwd)
|
||||||
|
# Without -buildmode=pie, build failure on armv6hf-musl
|
||||||
|
go build -buildmode=pie wtplan
|
||||||
|
go build -buildmode=pie wtplan-web
|
||||||
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue