void-packages/srcpkgs/gendesk/template

40 lines
1.3 KiB
Text
Raw Normal View History

2012-07-29 06:19:13 +00:00
# Template file for 'gendesk'
pkgname=gendesk
2014-09-19 17:03:32 +00:00
version=0.6.2
2014-09-20 15:00:52 +00:00
revision=2
2014-09-19 17:03:32 +00:00
hostmakedepends="go git mercurial"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" go-cross-linux"
fi
2012-07-29 06:19:13 +00:00
short_desc="Utility to generate .desktop files and download icons"
maintainer="Juan RP <xtraeme@gmail.com>"
license="MIT"
homepage="http://roboticoverlords.org/gendesk/"
2014-09-19 17:03:32 +00:00
distfiles="https://github.com/xyproto/${pkgname}/archive/${version}.tar.gz
http://roboticoverlords.org/images/default.png"
skip_extraction="default.png"
checksum="a01ecee04e2397f263b25b1ec94d642fe7f5b8b67eabc6123a923072dd130602
4d96eded48e536d02e35727c36dc20844c2e44654e81baf78e10aee4eb48e837"
2012-07-29 06:19:13 +00:00
do_build() {
2014-09-19 17:03:32 +00:00
case "$XBPS_TARGET_MACHINE" in
2014-09-20 15:00:52 +00:00
armv6*) export GOARCH=arm; export GOARM=6;;
armv7*) export GOARCH=arm; export GOARM=7;;
2014-09-19 17:03:32 +00:00
i686*) export GOARCH=386;;
x86_64*) export GOARCH=amd64;;
esac
export GOPATH="$PWD/gopath"
2014-09-20 15:00:52 +00:00
mkdir -p $GOPATH/src/github.com/xyproto
ln -s $PWD $GOPATH/src/github.com/xyproto/${pkgname}
go get -v github.com/xyproto/${pkgname}
go build -v github.com/xyproto/${pkgname}
2012-07-29 06:19:13 +00:00
}
2013-04-16 12:01:52 +00:00
do_install() {
2014-09-20 15:00:52 +00:00
vbin ${pkgname}
2014-09-19 17:03:32 +00:00
vinstall ${XBPS_SRCDISTDIR}/${pkgname}-${version}/default.png 644 usr/share/pixmaps
vman ${pkgname}.1
vlicense LICENSE
2012-07-29 06:19:13 +00:00
}