void-packages/srcpkgs/gparted/template

25 lines
874 B
Bash

# Template file for 'gparted'
pkgname=gparted
version=0.33.0
revision=1
build_style=gnu-configure
configure_args="--enable-libparted-dmraid"
hostmakedepends="gnome-doc-utils intltool pkg-config"
makedepends="libglib-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>"
license="GPL-2.0-or-later"
homepage="https://gparted.sourceforge.io"
distfiles="${SOURCEFORGE_SITE}/gparted/gparted/gparted-${version}/gparted-${version}.tar.gz"
checksum=5023b8c983f88a22e65bf6f09a12ea09369defc008981b52ee8b96a3879f81d6
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
}