void-packages/srcpkgs/gsmartcontrol/template

31 lines
1.0 KiB
Bash

# Template file for 'gsmartcontrol'
pkgname=gsmartcontrol
version=1.0.2
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="gtkmm-devel pcre-devel desktop-file-utils"
depends="smartmontools hicolor-icon-theme"
short_desc="GUI to smartmontools"
maintainer="yopito <pierre.bourgin@free.fr>"
license="GPL-3"
homepage="http://gsmartcontrol.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
checksum=4f70451c359d95edc974498b860696b698f19b187340dc7207b4b38cbaf5e207
post_install() {
# license files uneeded
rm -f ${DESTDIR}/usr/share/doc/${pkgname}/LICENSE_*
# PolicyKit support
vinstall ${FILESDIR}/org.void.pkexec.gsmartcontrol.policy 644 /usr/share/polkit-1/actions
vbin ${FILESDIR}/gsmartcontrol-pkexec
sed -i "s|^Exec=.*|Exec="/usr/bin/gsmartcontrol-pkexec"|" \
${DESTDIR}/usr/share/applications/gsmartcontrol.desktop
# no more need of gsmartcontrol-root since polkit
rm -f ${DESTDIR}/usr/bin/${pkgname}-root
rm -f ${DESTDIR}/usr/share/man/man1/gsmartcontrol-root.1
}