void-packages/srcpkgs/gparted/template

23 lines
859 B
Bash

# Template file for 'gparted'
pkgname=gparted
version=0.31.0
revision=2
build_style=gnu-configure
configure_args="--enable-libparted-dmraid"
hostmakedepends="gnome-doc-utils intltool pkg-config"
makedepends="glib-devel gnome-doc-utils gtkmm2-devel libparted-devel"
depends="desktop-file-utils hicolor-icon-theme"
short_desc="Gnome Partition Editor"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://gparted.sourceforge.io"
license="GPL-2"
distfiles="${SOURCEFORGE_SITE}/gparted/gparted/gparted-${version}/gparted-${version}.tar.gz"
checksum=3b7b49a434d9e4b397bc41a1f5acab8539b9ff402b472dfd83ad77b2decd07ba
pre_configure() {
sed -i "s:@bindir@/gparted %f:@bindir@/gparted-pkexec %f:g" gparted.desktop.in.in
}
post_install() {
vinstall ${FILESDIR}/org.void.pkexec.gparted.policy 644 /usr/share/polkit-1/actions
vbin ${FILESDIR}/gparted-pkexec
}