32 lines
1 KiB
Bash
32 lines
1 KiB
Bash
# Template file for 'gsmartcontrol'
|
|
pkgname=gsmartcontrol
|
|
version=0.8.7
|
|
revision=2
|
|
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
|
|
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
|
|
}
|