PKGBUILDs/alarm/fake-hwclock/PKGBUILD

25 lines
757 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
2013-12-22 04:25:27 +00:00
pkgrel=3
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')
md5sums=('8264f56630b0ed3299b51a43f3854285'
2013-12-22 04:25:27 +00:00
'7eab8d4ac4665148d9239fbd1514c1d3')
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/"
}