gendesk: use go get properly.
This commit is contained in:
parent
7cbd7f3266
commit
bf12c195cf
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'gendesk'
|
# Template file for 'gendesk'
|
||||||
pkgname=gendesk
|
pkgname=gendesk
|
||||||
version=0.6.2
|
version=0.6.2
|
||||||
revision=1
|
revision=2
|
||||||
hostmakedepends="go git mercurial"
|
hostmakedepends="go git mercurial"
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
hostmakedepends+=" go-cross-linux"
|
hostmakedepends+=" go-cross-linux"
|
||||||
|
@ -18,19 +18,21 @@ checksum="a01ecee04e2397f263b25b1ec94d642fe7f5b8b67eabc6123a923072dd130602
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
arm*) export GOARCH=arm;;
|
armv6*) export GOARCH=arm; export GOARM=6;;
|
||||||
|
armv7*) export GOARCH=arm; export GOARM=7;;
|
||||||
i686*) export GOARCH=386;;
|
i686*) export GOARCH=386;;
|
||||||
x86_64*) export GOARCH=amd64;;
|
x86_64*) export GOARCH=amd64;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
export GOPATH="$PWD/gopath"
|
export GOPATH="$PWD/gopath"
|
||||||
go get -v code.google.com/p/goconf/conf
|
mkdir -p $GOPATH/src/github.com/xyproto
|
||||||
go get -v github.com/xyproto/textgui
|
ln -s $PWD $GOPATH/src/github.com/xyproto/${pkgname}
|
||||||
go build -v
|
go get -v github.com/xyproto/${pkgname}
|
||||||
|
go build -v github.com/xyproto/${pkgname}
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vbin ${pkgname}-${version} ${pkgname}
|
vbin ${pkgname}
|
||||||
vinstall ${XBPS_SRCDISTDIR}/${pkgname}-${version}/default.png 644 usr/share/pixmaps
|
vinstall ${XBPS_SRCDISTDIR}/${pkgname}-${version}/default.png 644 usr/share/pixmaps
|
||||||
vman ${pkgname}.1
|
vman ${pkgname}.1
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
|
|
Loading…
Reference in New Issue