2015-11-22 16:38:23 +00:00
|
|
|
# Template file for 'gsmartcontrol'
|
|
|
|
pkgname=gsmartcontrol
|
|
|
|
version=0.8.7
|
2015-11-27 00:11:43 +00:00
|
|
|
revision=2
|
2015-11-22 16:38:23 +00:00
|
|
|
build_style=gnu-configure
|
|
|
|
hostmakedepends="pkg-config"
|
|
|
|
makedepends="gtkmm2-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=708fa803243abb852ed52050fc82cd3592a798c02743342441996e77f19ffec6
|
|
|
|
|
|
|
|
CXXFLAGS="-std=c++11"
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
# license files uneeded
|
2015-11-27 00:11:43 +00:00
|
|
|
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
|
2015-11-22 16:38:23 +00:00
|
|
|
}
|