[arch-commits] Commit in anything-sync-daemon/repos (3 files)

David Runge dvzrv at archlinux.org
Fri Feb 14 16:32:11 UTC 2020


    Date: Friday, February 14, 2020 @ 16:32:10
  Author: dvzrv
Revision: 571141

archrelease: copy trunk to community-any

Added:
  anything-sync-daemon/repos/community-any/
  anything-sync-daemon/repos/community-any/PKGBUILD
    (from rev 571140, anything-sync-daemon/trunk/PKGBUILD)
  anything-sync-daemon/repos/community-any/anything-sync-daemon.install
    (from rev 571140, anything-sync-daemon/trunk/anything-sync-daemon.install)

------------------------------+
 PKGBUILD                     |   28 ++++++++++++++++++++++++++++
 anything-sync-daemon.install |   27 +++++++++++++++++++++++++++
 2 files changed, 55 insertions(+)

Copied: anything-sync-daemon/repos/community-any/PKGBUILD (from rev 571140, anything-sync-daemon/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-02-14 16:32:10 UTC (rev 571141)
@@ -0,0 +1,28 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: graysky <graysky AT archlinux DOT us>
+
+pkgname=anything-sync-daemon
+pkgver=5.85
+pkgrel=2
+pkgdesc="Symlinks and syncs user specified dirs to RAM"
+arch=('any')
+url="https://github.com/graysky2/anything-sync-daemon"
+license=('MIT')
+depends=('bash' 'findutils' 'procps-ng' 'rsync' 'systemd')
+optdepends=('bash-completion: for completion when using bash'
+            'zsh-completions: for completion when using zhs')
+install="${pkgname}.install"
+source=("$pkgname-$pkgver.tar.gz::https://github.com/graysky2/${pkgname}/archive/v${pkgver}.tar.gz")
+sha512sums=('85b2d7458efe4686bf3564ad9242bac7b17080f4504ca89ea32102d34a730424ea209ec88bdbfca4c16964fe4840c2e33c8600edda46dc9f164c5be022eb9445')
+
+build() {
+  cd "$pkgname-$pkgver"
+  make
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  make DESTDIR="$pkgdir/" install-systemd-all
+  install -vDm 644 MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+}

Copied: anything-sync-daemon/repos/community-any/anything-sync-daemon.install (from rev 571140, anything-sync-daemon/trunk/anything-sync-daemon.install)
===================================================================
--- community-any/anything-sync-daemon.install	                        (rev 0)
+++ community-any/anything-sync-daemon.install	2020-02-14 16:32:10 UTC (rev 571141)
@@ -0,0 +1,27 @@
+## arg 1:  the new package version
+## arg 2:  the old package version
+# shellcheck disable=SC2016
+
+_stop_asd_service() {
+  if systemctl is-active asd.service &>/dev/null; then
+    echo 'In order to preserve the data, the asd service will now be stopped.'
+    systemctl stop asd.service &>/dev/null
+  fi
+}
+
+pre_upgrade() {
+  for version in 5.69 5.76; do
+    if [ "$(vercmp "$2" "$version")" -lt 0 ]; then
+      _stop_asd_service
+      echo 'Start the asd service manually after upgrade is complete.'
+    fi
+  done
+}
+
+post_install() {
+  echo 'Consult the manpage (`man 1 asd`) and backup your data before use.'
+}
+
+pre_remove() {
+  _stop_asd_service
+}



More information about the arch-commits mailing list