mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
24 lines
757 B
Bash
24 lines
757 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=4
|
|
pkgdesc="Saves time on shutdown and restores it on boot from a file"
|
|
arch=('arm')
|
|
license=('GPL')
|
|
install=fake-hwclock.install
|
|
source=('fake-hwclock.sh'
|
|
'fake-hwclock.service')
|
|
|
|
md5sums=('8264f56630b0ed3299b51a43f3854285'
|
|
'8a328ff872a092dcdf86088ae2c20fd3')
|
|
|
|
package() {
|
|
mkdir -p "${pkgdir}/usr/lib/systemd/"{scripts,system}
|
|
|
|
cp "${srcdir}/fake-hwclock.sh" "${pkgdir}/usr/lib/systemd/scripts/"
|
|
cp "${srcdir}/fake-hwclock.service" "${pkgdir}/usr/lib/systemd/system/"
|
|
}
|