void-packages/srcpkgs/gparted/template

24 lines
852 B
Bash

# Template file for 'gparted'
pkgname=gparted
version=0.30.0
revision=2
build_style=gnu-configure
configure_args="--enable-libparted-dmraid"
hostmakedepends="pkg-config intltool gnome-doc-utils"
makedepends="libuuid-devel libparted-devel gtkmm2-devel gnome-doc-utils glib-devel"
depends="hicolor-icon-theme desktop-file-utils"
short_desc="Gnome Partition Editor"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://gparted.sourceforge.io"
license="GPL-2"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=d31193effe058bdaeb2a4cd4b514ec753191179a0bc3abefda68a2b7975ecf4a
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
}