summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d61c0ac95f2bffc543aef69d05cfaafe489ee353 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: peippo <christoph.fink@gmail.com>

pkgname="linux-timemachine"
pkgdesc="Rsync-based OSX-like time machine for atomic and resumable local and remote backups"
url="https://github.com/cytopia/linux-timemachine"

pkgver=1.3.2
pkgrel=1

arch=("any")
license=("MIT")

makedepends=("git")
depends=("rsync")
optdepends=("openssh: backup to remote (SCP) locations")

source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
b2sums=("937335d9fc7c41cdc691be09df1b5daf732ba52dc567efdd7b141907459045efd599088c9297a9d5ea706b9416deb9d1a11f8df1b91f446665bb39484ea8d6c8")

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"

    install \
        -Dm755 \
        timemachine \
        "${pkgdir}/usr/bin/timemachine"

    install \
        -Dm644 \
        LICENSE.md \
        "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}