mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
24 lines
726 B
Bash
24 lines
726 B
Bash
|
# 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/"
|
||
|
}
|