# Template file for 'gendesk'
pkgname=gendesk
version=1.0.15
revision=1
build_style=go
go_import_path=github.com/xyproto/gendesk
short_desc="Utility to generate .desktop files and download icons"
maintainer="Rutpiv <roger_freitas@live.com>"
license="BSD-3-Clause"
homepage="https://gendesk.roboticoverlords.org/"
distfiles="https://github.com/xyproto/gendesk/archive/v${version}.tar.gz
 https://gendesk.roboticoverlords.org/default.png"
checksum="7d8f0a85aad8049d79718c51ccbb4a41bb292e962e9457e1c5fef1dfc896f006
 0739303780d078746c7ea65daed73142b9044f6a5a1803f5f9363f749af28559"
skip_extraction="default.png"

pre_build() {
	vsed -e 's|gendesk|github.com/xyproto/gendesk|' -i go.mod
}

post_install() {
	vinstall ${XBPS_SRCDISTDIR}/${pkgname}-${version}/default.png 644 usr/share/pixmaps gendesk.png
	vman ${pkgname}.1
	vlicense LICENSE
}
