void-packages/srcpkgs/gparted/template
2019-05-30 13:23:28 +02:00

24 lines
860 B
Bash

# Template file for 'gparted'
pkgname=gparted
version=1.0.0
revision=1
build_style=gnu-configure
configure_args="--enable-libparted-dmraid"
hostmakedepends="intltool itstool pkg-config"
makedepends="libglib-devel gtkmm-devel libparted-devel yelp-tools"
depends="desktop-file-utils hicolor-icon-theme"
short_desc="Gnome Partition Editor"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://gparted.sourceforge.io"
distfiles="${SOURCEFORGE_SITE}/gparted/gparted/gparted-${version}/gparted-${version}.tar.gz"
checksum=e48b8b07c0e024a7050711fdd01f8276fe99fa546de8668f73e2f82d0bb2bb55
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
}