void-packages/srcpkgs/gendesk/template
Érico Rolim b8c5e59acd srcpkgs/: clean up Go packages.
Fix small typos, expand some variables, leave comments for updates.
2021-02-19 12:07:43 -03:00

27 lines
862 B
Bash

# Template file for 'gendesk'
pkgname=gendesk
version=1.0.6
revision=1
build_style=go
go_import_path=github.com/xyproto/gendesk
go_mod_mode=default
hostmakedepends="git"
short_desc="Utility to generate .desktop files and download icons"
maintainer="Benjamín Albiñana <benalb@gmail.com>"
license="MIT"
homepage="http://roboticoverlords.org/gendesk/"
distfiles="https://github.com/xyproto/gendesk/archive/${version}.tar.gz
http://roboticoverlords.org/images/default.png"
checksum="924606ca1c15a140b70f363c4a0ac46fb3ad4d05bc39db400d0b0e41dd4456bb
4d96eded48e536d02e35727c36dc20844c2e44654e81baf78e10aee4eb48e837"
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
vman ${pkgname}.1
vlicense LICENSE
}