2013-12-21 10:56:45 +00:00
|
|
|
# Maintainer: Oleg Rakhmanov <orakhmanov [at] gmail [dot] com>
|
2014-05-25 11:21:30 +00:00
|
|
|
# Contributor: Peter Wu <peter (at) lekensteyn (dot) nl>
|
2013-12-21 10:56:45 +00:00
|
|
|
#
|
|
|
|
# Reworked Alexander Manning's rc.d script for systemd
|
|
|
|
# Reference: http://archplusplus.co.uk/post/31401843803/fake-hwclock-for-arch-linux-arm-on-raspberry-pi
|
|
|
|
|
|
|
|
pkgname=fake-hwclock
|
2014-05-25 11:21:30 +00:00
|
|
|
pkgver=0.3
|
2014-01-21 06:11:29 +00:00
|
|
|
pkgrel=1
|
2013-12-21 10:56:45 +00:00
|
|
|
pkgdesc="Saves time on shutdown and restores it on boot from a file"
|
2014-05-25 11:21:30 +00:00
|
|
|
arch=('any')
|
2013-12-21 10:56:45 +00:00
|
|
|
license=('GPL')
|
2013-12-22 04:27:46 +00:00
|
|
|
install=fake-hwclock.install
|
|
|
|
source=('fake-hwclock.sh'
|
2014-05-25 11:21:30 +00:00
|
|
|
'fake-hwclock.service'
|
|
|
|
'fake-hwclock-save.service'
|
|
|
|
'fake-hwclock-save.timer')
|
2013-12-21 10:56:45 +00:00
|
|
|
|
2014-05-25 11:21:30 +00:00
|
|
|
md5sums=('713f9cd5d8dc0073b5eca5dd14de1271'
|
|
|
|
'fa52aac3db246575c3cc8c1bf608766c'
|
|
|
|
'9f93ed2b74260d204a9c285d35ee2daa'
|
|
|
|
'b2b494cb4ba99eb12df3cb4188902ca4')
|
2013-12-21 10:56:45 +00:00
|
|
|
|
|
|
|
package() {
|
2014-05-25 11:21:30 +00:00
|
|
|
install -D -m755 "${srcdir}/fake-hwclock.sh" "${pkgdir}/usr/lib/systemd/scripts/fake-hwclock.sh"
|
|
|
|
for unit in \
|
|
|
|
fake-hwclock.service \
|
|
|
|
fake-hwclock-save.service \
|
|
|
|
fake-hwclock-save.timer
|
|
|
|
do
|
|
|
|
install -D -m644 "${srcdir}/$unit" "${pkgdir}/usr/lib/systemd/system/$unit"
|
|
|
|
done
|
2013-12-21 10:56:45 +00:00
|
|
|
}
|