void-packages/srcpkgs/grub-customizer/template

29 lines
925 B
Bash

# Template file for 'grub-customizer'
pkgname=grub-customizer
version=5.2.2
revision=1
build_style=cmake
hostmakedepends="pkg-config"
makedepends="gtkmm-devel openssl-devel libarchive-devel"
depends="hicolor-icon-theme grub-utils polkit xhost"
conf_files="/etc/grub-customizer/grub.cfg"
short_desc="Graphical grub2 settings manager"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://launchpad.net/grub-customizer/"
distfiles="https://launchpad.net/grub-customizer/${version%.*}/${version}/+download/grub-customizer_${version}.tar.gz"
checksum=39d4b3dda81c3804566f0cc9d2ab1f41e1ffa923656b651c1488220ed2046793
pre_configure() {
# Modify desktop file for Void Linux
vsed -i misc/grub-customizer.desktop \
-e '/^Categories=/s/Settings/GTK/' \
-e '/^X-Ubuntu/d' \
-e '/^X-KDE/d'
}
post_install() {
vinstall ${FILESDIR}/grub.cfg 644 etc/grub-customizer grub.cfg
vdoc changelog
}