-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
25 lines (23 loc) · 1.04 KB
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Maintainer: Chaiwat Suttipongsakul <[email protected]>
pkgname=visionfive2-i2c-rtc-ds1307
pkgver=0.1
pkgrel=4
pkgdesc="VisionFive2 Clock on I2C RTC-DS1307"
arch=('any')
url="https://github.com/cwt/visionfive2-i2c-rtc-ds1307"
license=('MIT')
depends=('i2c-tools' 'util-linux')
source=('rtc-ds1307-boot.service'
'rtc-ds1307-shutdown.service'
'rtc-ds1307.sh'
'rtc-ds1307.conf')
sha256sums=('bf1135f198daf87470a69d348ff8489575d742405610b87bc82fad4a14405dd3'
'54142f693c0382f41bea096f5e3694438c5f912797a29530346e8e4c9f6f61df'
'980da77ede2488fd897ba59bd8a3812827ef7a5bf307cec22d856a3d8101a54d'
'90d172c32fe3202b0669bf59a1e3ad48e9dfac19e85f37e8fe7df94fb1fce45e')
package() {
install -Dm644 rtc-ds1307-boot.service "${pkgdir}/usr/local/lib/systemd/system/rtc-ds1307-boot.service"
install -Dm644 rtc-ds1307-shutdown.service "${pkgdir}/usr/local/lib/systemd/system/rtc-ds1307-shutdown.service"
install -Dm755 rtc-ds1307.sh "${pkgdir}/usr/local/sbin/rtc-ds1307.sh"
install -Dm644 rtc-ds1307.conf "${pkgdir}/etc/rtc-ds1307.conf"
}