summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 11d14ead125a6f7fca1a6c72512dc09babf5ab9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Maintainer: jjacky
pkgname=auto-rsync-backups
pkgver=1.1.0
pkgrel=1
pkgdesc="little script to handle/rotate rsync backups"
arch=('any')
url="https://github.com/jjk-jacky/auto-rsync-backups"
license=('GPL3')
depends=('bash' 'rsync')
source=(https://jjacky.com/$pkgname/$pkgname-$pkgver.tar.gz)
sha1sums=('2f72124fd20cd20967ea3053b6c3c2fc2e3f914d')

package() {
    cd $pkgname-$pkgver
    for f in auto-rsync-{backups,restore}.sh auto-rsync-backups.common; do
        install -D -m755 $f "${pkgdir}/usr/bin/$f"
    done
    for f in backups.{sample.conf,excludes} AUTHORS COPYING HISTORY LICENSE README.md; do
        install -D -m644 $f "${pkgdir}/usr/share/${pkgname}/$f"
    done
}