void-packages/srcpkgs/gparted/template
2018-08-23 09:52:28 +02:00

23 lines
870 B
Bash

# Template file for 'gparted'
pkgname=gparted
version=0.32.0
revision=1
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>"
license="GPL-2.0-or-later"
homepage="https://gparted.sourceforge.io"
distfiles="${SOURCEFORGE_SITE}/gparted/gparted/gparted-${version}/gparted-${version}.tar.gz"
checksum=ae1db86def71015f2d755310a32ab334354076d23bf400e35a720226112357ba
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
}