void-packages/srcpkgs/gendesk/template

26 lines
842 B
Bash

# Template file for 'gendesk'
pkgname=gendesk
version=1.0.10
revision=1
build_style=go
go_import_path=github.com/xyproto/gendesk
short_desc="Utility to generate .desktop files and download icons"
maintainer="Benjamín Albiñana <benalb@gmail.com>"
license="BSD-3-Clause"
homepage="https://gendesk.roboticoverlords.org/"
distfiles="https://github.com/xyproto/gendesk/archive/v${version}.tar.gz
https://roboticoverlords.org/images/${pkgname}.png"
checksum="a9e7a6d7be514f829ebf86d9764d37436539f29d0b8a03a31d8386f9be604fdb
4d96eded48e536d02e35727c36dc20844c2e44654e81baf78e10aee4eb48e837"
skip_extraction="${pkgname}.png"
pre_build() {
vsed -e 's|gendesk|github.com/xyproto/gendesk|' -i go.mod
}
post_install() {
vinstall ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}.png 644 usr/share/pixmaps
vman ${pkgname}.1
vlicense LICENSE
}