2013-12-21 10:56:45 +00:00
|
|
|
# Maintainer: Oleg Rakhmanov <orakhmanov [at] gmail [dot] com>
|
|
|
|
#
|
|
|
|
# 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-01-21 06:11:29 +00:00
|
|
|
pkgver=0.2
|
|
|
|
pkgrel=1
|
2013-12-21 10:56:45 +00:00
|
|
|
pkgdesc="Saves time on shutdown and restores it on boot from a file"
|
|
|
|
arch=('arm')
|
|
|
|
license=('GPL')
|
2013-12-22 04:27:46 +00:00
|
|
|
install=fake-hwclock.install
|
|
|
|
source=('fake-hwclock.sh'
|
2013-12-21 10:56:45 +00:00
|
|
|
'fake-hwclock.service')
|
|
|
|
|
2014-01-21 06:11:29 +00:00
|
|
|
md5sums=('09cea0ee86071fb86d3cdbc52feabe69'
|
2013-12-22 04:28:40 +00:00
|
|
|
'8a328ff872a092dcdf86088ae2c20fd3')
|
2013-12-21 10:56:45 +00:00
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "${pkgdir}/usr/lib/systemd/"{scripts,system}
|
|
|
|
|
2013-12-22 04:27:46 +00:00
|
|
|
cp "${srcdir}/fake-hwclock.sh" "${pkgdir}/usr/lib/systemd/scripts/"
|
2013-12-21 10:56:45 +00:00
|
|
|
cp "${srcdir}/fake-hwclock.service" "${pkgdir}/usr/lib/systemd/system/"
|
|
|
|
}
|