blob: 895dfbe847893a588ee562a881d59855742be71d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: Jelle van der Waa <jelle@vdwaa.nl>
pkgname=gsmartcontrol
pkgver=0.8.7
pkgrel=4
pkgdesc="A graphical user interface for the smartctl hard disk drive health inspection tool."
arch=('i686' 'x86_64' 'mips64el')
url="http://gsmartcontrol.berlios.de/home/index.php/en/Home"
license=('GPL3')
depends=('smartmontools' 'gtkmm' 'xorg-xmessage' 'hicolor-icon-theme')
optdepends=('polkit: to run gsmartcontrol directly from menu')
install=${pkgname}.install
source=(http://download.berlios.de/gsmartcontrol/${pkgname}-${pkgver}.tar.bz2
org.archlinux.pkexec.gsmartcontrol.policy
gsmartcontrol_polkit)
md5sums=('6d104c2ffc1e693cd1a8052a6d7e3b30'
'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}"
./configure --prefix=/usr
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"
}
|