#!/usr/bin/bash
# JOBoRun		: Jwm OpenBox Obarun RUNit
# Maintainer	: Joe Bo Run <joborun@disroot.org>
# PkgSource		: url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website		: https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------

pkgname=anything-sync-daemon
pkgver=6.0.0
pkgrel=01
pkgdesc="Symlinks and syncs user specified dirs to RAM w/o systemd zstd"
arch=(any)
url="https://github.com/graysky2/anything-sync-daemon"
depends=(bash findutils procps-ng rsync pv tar)
optdepends=('bash-completion: for completion when using bash'
            'zsh-completions: for completion when using zhs')
install="$pkgname.install"
backup=(etc/asd.conf)
source=($pkgname-$pkgver.tar.gz::https://github.com/graysky2/${pkgname}/archive/v$pkgver.tar.gz)

build() {
  make -C $pkgname-$pkgver
}

package() {
  make DESTDIR="$pkgdir/" install-systemd-all -C $pkgname-$pkgver
  install -vDm 644 $pkgname-$pkgver/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
  install -vDm 644 $pkgname-$pkgver/README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}

#---- license gpg-key sha256sums ----

license=(MIT)

sha256sums=(51a4abe0aa15623a5fc3012df6a94f5f977f2e65c6fba96829f8d7761e109d52) # anything-sync-daemon-6.0.0.tar.gz
