void-packages/srcpkgs/snixembed/template

26 lines
824 B
Bash
Raw Normal View History

2020-06-03 09:19:56 +00:00
# Template file for 'snixembed'
pkgname=snixembed
version=0.2.2
revision=1
build_style=gnu-makefile
make_use_env=yes
hostmakedepends="pkg-config vala"
makedepends="gtk+3-devel glib-devel libdbusmenu-gtk3-devel libdbusmenu-glib-devel vala-devel"
short_desc="Proxy StatusNotifierItem systray API to XEmbed API"
maintainer="projectmoon <projectmoon@agnos.is>"
license="ISC"
homepage="https://git.sr.ht/~steef/snixembed"
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=91e654ced9c09f2c566afef2035894be6c99d18189a234a07b6c921427851a04
pre_build() {
# Need to patch makefile with version because currently it
# assumes it's in a git repo.
vsed -i makefile -e 's/version.vala:.*/version.vala:/g'
vsed -i makefile -e 's/VERSION = .*$/VERSION = \\"'"${version}"'\\";\" > $@/g'
}
post_install() {
vlicense LICENSE
}