[arch-commits] Commit in gsmartcontrol/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Tue Jul 7 13:53:54 UTC 2020
Date: Tuesday, July 7, 2020 @ 13:53:53
Author: felixonmars
Revision: 658631
archrelease: copy trunk to community-staging-x86_64
Added:
gsmartcontrol/repos/community-staging-x86_64/
gsmartcontrol/repos/community-staging-x86_64/PKGBUILD
(from rev 658630, gsmartcontrol/trunk/PKGBUILD)
gsmartcontrol/repos/community-staging-x86_64/gsmartcontrol_polkit
(from rev 658630, gsmartcontrol/trunk/gsmartcontrol_polkit)
gsmartcontrol/repos/community-staging-x86_64/org.archlinux.pkexec.gsmartcontrol.policy
(from rev 658630, gsmartcontrol/trunk/org.archlinux.pkexec.gsmartcontrol.policy)
----------------------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++
gsmartcontrol_polkit | 6 +++++
2 files changed, 57 insertions(+)
Copied: gsmartcontrol/repos/community-staging-x86_64/PKGBUILD (from rev 658630, gsmartcontrol/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-07-07 13:53:53 UTC (rev 658631)
@@ -0,0 +1,51 @@
+# Maintainer: Jelle van der Waa <jelle at vdwaa.nl>
+
+pkgname=gsmartcontrol
+pkgver=1.1.3
+pkgrel=3
+pkgdesc="A graphical user interface for the smartctl hard disk drive health inspection tool."
+arch=('x86_64')
+url="https://gsmartcontrol.sourceforge.io/home/"
+license=('GPL')
+depends=('smartmontools' 'gtkmm3' 'xorg-xmessage' 'hicolor-icon-theme')
+optdepends=('polkit: to run gsmartcontrol directly from menu'
+ 'xterm: to update the drive database')
+source=("https://sourceforge.net/projects/gsmartcontrol/files/${pkgver}/gsmartcontrol-${pkgver}.tar.bz2"
+ org.archlinux.pkexec.gsmartcontrol.policy
+ gsmartcontrol_polkit)
+md5sums=('6953ed6f90b2551ebdb1ae2470f4acdc'
+ '503989a7e6a9a287d81e91243d03f162'
+ '33bdda04d8db1525f2507485f3f2a663')
+
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ # Modify desktop file
+ sed -i "s|^Exec=.*|Exec="@prefix@/bin/gsmartcontrol_polkit"|" \
+ data/gsmartcontrol.desktop.in
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ CXXFLAGS+=' -std=c++11' ./configure --prefix=/usr --sbindir=/usr/bin/
+ make
+}
+
+check() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make check
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ make DESTDIR=${pkgdir} install
+
+ # Install launcher script
+ install -m755 ${srcdir}/gsmartcontrol_polkit \
+ "${pkgdir}/usr/bin/gsmartcontrol_polkit"
+
+ # Install policy file
+ install -Dm644 ${srcdir}/org.archlinux.pkexec.gsmartcontrol.policy \
+ "${pkgdir}/usr/share/polkit-1/actions/org.archlinux.pkexec.gsmartcontrol.policy"
+}
Copied: gsmartcontrol/repos/community-staging-x86_64/gsmartcontrol_polkit (from rev 658630, gsmartcontrol/trunk/gsmartcontrol_polkit)
===================================================================
--- community-staging-x86_64/gsmartcontrol_polkit (rev 0)
+++ community-staging-x86_64/gsmartcontrol_polkit 2020-07-07 13:53:53 UTC (rev 658631)
@@ -0,0 +1,6 @@
+#!/bin/bash
+if [ $(which pkexec) ]; then
+ pkexec --disable-internal-agent "/usr/bin/gsmartcontrol" "$@"
+else
+ /usr/bin/gsmartcontrol "$@"
+fi
Copied: gsmartcontrol/repos/community-staging-x86_64/org.archlinux.pkexec.gsmartcontrol.policy (from rev 658630, gsmartcontrol/trunk/org.archlinux.pkexec.gsmartcontrol.policy)
===================================================================
(Binary files differ)
More information about the arch-commits
mailing list