[arch-commits] Commit in uptimed/repos (3 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 13:32:45 UTC 2020


    Date: Tuesday, July 7, 2020 @ 13:32:45
  Author: felixonmars
Revision: 658502

archrelease: copy trunk to community-staging-x86_64

Added:
  uptimed/repos/community-staging-x86_64/
  uptimed/repos/community-staging-x86_64/PKGBUILD
    (from rev 658501, uptimed/trunk/PKGBUILD)
  uptimed/repos/community-staging-x86_64/uptimed.install
    (from rev 658501, uptimed/trunk/uptimed.install)

-----------------+
 PKGBUILD        |   32 ++++++++++++++++++++++++++++++++
 uptimed.install |    9 +++++++++
 2 files changed, 41 insertions(+)

Copied: uptimed/repos/community-staging-x86_64/PKGBUILD (from rev 658501, uptimed/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 13:32:45 UTC (rev 658502)
@@ -0,0 +1,32 @@
+# Maintainer:  Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer:  Bartłomiej Piotrowski <nospam at bpiotrowski.pl>
+# Contributor: Tom Killian <tomk at runbox.com>
+# Contributor: Tom Newsom <Jeepster at gmx.co.uk>
+
+pkgname=uptimed
+pkgver=0.4.2
+pkgrel=2
+pkgdesc="A system uptime record daemon"
+arch=(x86_64)
+#url="http://podgorny.cz/uptimed/"
+url="https://github.com/rpodgorny/uptimed"
+license=('GPL')
+depends=()
+makedepends=('systemd')
+backup=(etc/uptimed.conf)
+install=$pkgname.install
+source=("$pkgname-$pkgver.tar.gz::https://github.com/rpodgorny/uptimed/archive/v$pkgver.tar.gz")
+sha512sums=('a18cc8580a4dc7db7f4d97d70e25d76e7b98b9d328a0fa4ece4176d40fc26589149d63ffc9d2638cc35003cf485b43ae6e115aa1821c662d77f234eb3c4c0a4f')
+
+build() {
+  cd "$srcdir"/$pkgname-$pkgver
+  ./autogen.sh
+  ./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin
+  make
+}
+
+package() {
+  cd "$srcdir"/$pkgname-$pkgver
+  make install DESTDIR="$pkgdir"
+  mv "$pkgdir"/etc/uptimed.conf-dist "$pkgdir"/etc/uptimed.conf
+}

Copied: uptimed/repos/community-staging-x86_64/uptimed.install (from rev 658501, uptimed/trunk/uptimed.install)
===================================================================
--- community-staging-x86_64/uptimed.install	                        (rev 0)
+++ community-staging-x86_64/uptimed.install	2020-07-07 13:32:45 UTC (rev 658502)
@@ -0,0 +1,9 @@
+pre_remove() {
+  rm -rf var/spool/uptimed
+}
+
+pre_upgrade() {
+  if [ -d var/log/uptimed ] && [ ! -d var/spool/uptimed ]; then
+    mv var/log/uptimed var/spool/
+  fi
+}


More information about the arch-commits mailing list