[arch-commits] Commit in units/repos/community-x86_64 (4 files)
Kyle Keen
kkeen at archlinux.org
Sun Jan 17 00:06:04 UTC 2021
Date: Sunday, January 17, 2021 @ 00:06:03
Author: kkeen
Revision: 821244
archrelease: copy trunk to community-x86_64
Added:
units/repos/community-x86_64/PKGBUILD
(from rev 821243, units/trunk/PKGBUILD)
units/repos/community-x86_64/units_currency.service
(from rev 821243, units/trunk/units_currency.service)
units/repos/community-x86_64/units_currency.timer
(from rev 821243, units/trunk/units_currency.timer)
Deleted:
units/repos/community-x86_64/PKGBUILD
------------------------+
PKGBUILD | 70 +++++++++++++++++++++++++----------------------
units_currency.service | 8 +++++
units_currency.timer | 10 ++++++
3 files changed, 56 insertions(+), 32 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-01-17 00:05:34 UTC (rev 821243)
+++ PKGBUILD 2021-01-17 00:06:03 UTC (rev 821244)
@@ -1,32 +0,0 @@
-# Maintainer: Kyle Keen <keenerd at gmail.com>
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Maintainer: Jeff Mickey <jeff at archlinux.org>
-# Contributor: Steve Sansom <snsansom at gmail.com>
-
-pkgname=units
-pkgver=2.21
-pkgrel=1
-pkgdesc="converts between different units"
-arch=('x86_64')
-url="https://www.gnu.org/software/units/units.html"
-depends=('readline')
-optdepends=('python-unidecode: for live currency rates'
- 'python-requests: for live currency rates')
-makedepends=('python-unidecode' 'python-requests')
-license=("GPL")
-options=('!makeflags')
-validpgpkeys=('9AD8FC4162D7937CF64F972E1889D5F0E0636F49')
-source=(https://ftp.gnu.org/gnu/units/$pkgname-$pkgver.tar.gz{,.sig})
-sha256sums=('6c3e80a9f980589fd962a5852a2674642257db1c5fd5b27c4d9e664f3486cbaf'
- 'SKIP')
-
-build() {
- cd "$srcdir/$pkgname-$pkgver"
- ./configure --prefix=/usr --datadir=/usr/share --sharedstatedir=/var/lib
- make
-}
-
-package() {
- cd "$srcdir/$pkgname-$pkgver"
- make DESTDIR="$pkgdir" install
-}
Copied: units/repos/community-x86_64/PKGBUILD (from rev 821243, units/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-01-17 00:06:03 UTC (rev 821244)
@@ -0,0 +1,38 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Jeff Mickey <jeff at archlinux.org>
+# Contributor: Steve Sansom <snsansom at gmail.com>
+
+pkgname=units
+pkgver=2.21
+pkgrel=2
+pkgdesc="converts between different units"
+arch=('x86_64')
+url="https://www.gnu.org/software/units/units.html"
+depends=('readline')
+optdepends=('python-unidecode: for live currency rates'
+ 'python-requests: for live currency rates')
+makedepends=('python-unidecode' 'python-requests')
+license=("GPL")
+options=('!makeflags')
+validpgpkeys=('9AD8FC4162D7937CF64F972E1889D5F0E0636F49')
+source=(https://ftp.gnu.org/gnu/units/$pkgname-$pkgver.tar.gz{,.sig}
+ 'units_currency.timer'
+ 'units_currency.service')
+sha256sums=('6c3e80a9f980589fd962a5852a2674642257db1c5fd5b27c4d9e664f3486cbaf'
+ 'SKIP'
+ 'c1cb48a6157c850a0b7ecbf4387b82820d6e42f4a2c7ff0eb9de293bad6b128f'
+ '52e8cd68110e797e3ee3737f06200505225039b18f3f9b87ae38b6c539c9ccb2')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./configure --prefix=/usr --datadir=/usr/share --sharedstatedir=/var/lib
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+ install -Dm644 ../units_currency.timer "$pkgdir/usr/lib/systemd/system/units_currency.timer"
+ install -Dm644 ../units_currency.service "$pkgdir/usr/lib/systemd/system/units_currency.service"
+}
Copied: units/repos/community-x86_64/units_currency.service (from rev 821243, units/trunk/units_currency.service)
===================================================================
--- units_currency.service (rev 0)
+++ units_currency.service 2021-01-17 00:06:03 UTC (rev 821244)
@@ -0,0 +1,8 @@
+[Unit]
+Description=Update units currency rates database
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/units_cur
Copied: units/repos/community-x86_64/units_currency.timer (from rev 821243, units/trunk/units_currency.timer)
===================================================================
--- units_currency.timer (rev 0)
+++ units_currency.timer 2021-01-17 00:06:03 UTC (rev 821244)
@@ -0,0 +1,10 @@
+[Unit]
+Description=Daily units currency rates database update
+
+[Timer]
+OnCalendar=daily
+AccuracySec=12h
+Persistent=true
+
+[Install]
+WantedBy=timers.target
More information about the arch-commits
mailing list