PKGBUILDs/alarm/fake-hwclock/PKGBUILD

24 lines
726 B
Bash
Raw Normal View History

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
pkgver=0.1
pkgrel=1
pkgdesc="Saves time on shutdown and restores it on boot from a file"
arch=('arm')
license=('GPL')
source=('savesettime.sh'
'fake-hwclock.service')
md5sums=('8264f56630b0ed3299b51a43f3854285'
'555ce36333857e6ee56c98daa7df2f5f')
package() {
mkdir -p "${pkgdir}/usr/lib/systemd/"{scripts,system}
cp "${srcdir}/savesettime.sh" "${pkgdir}/usr/lib/systemd/scripts/"
cp "${srcdir}/fake-hwclock.service" "${pkgdir}/usr/lib/systemd/system/"
}