updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / smartmon / PKGBUILD
blob0c897187eab630ca85320932be18086cc64aa646
1 # Maintainer: Mr. Fillo <fillo@fillo.ru>
2 # Contributor: Mr. Fillo <fillo@fillo.ru>
4 pkgname=smartmon
5 pkgver=1.0.0
6 pkgrel=1
7 pkgdesc="This is a small daemon that can monitor power control, run custom scripts after the specified time, and rely on open windows in a choice of action."
8 arch=('any')
9 url="http://code.google.com/p/smartmon"
10 license=('GPL')
11 depends=('pcre')
12 install="${pkgname}.install"
13 source=("http://smartmon.googlecode.com/files/${pkgname}-${pkgver}.tar.bz2"
14         'smartmon_conf'
15         'smartmon_rc')
16 md5sums=('929463c1f33fae0c063dae45acb37313'
17          'dc4f9b3096aae76c4dddfd8fbeefbe62'
18          'ae7cf4e3ce0f89756abb51c1c980dfbc')
20 package() {
21   cd "${srcdir}/${pkgname}-${pkgver}"
22   ./make -m
24   install -D -m755 "smartmon" "${pkgdir}/usr/bin/smartmon"
25   install -D -m755 "${srcdir}/smartmon_rc" "${pkgdir}/etc/rc.d/smartmon"
26   install -D -m644 "${srcdir}/smartmon_conf" "${pkgdir}/etc/conf.d/smartmon"
28   install -d "${pkgdir}/usr/share/smartmon"
29   install -D -m755 "scripts/xscreensaver" "${pkgdir}/usr/share/smartmon/xscreensaver"
30   install -D -m755 "scripts/simple" "${pkgdir}/usr/share/smartmon/simple"