summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9d3dcec8b095cb91477306c4750aa97248ca1336 (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
# Maintainer: PenguinSnail

pkgname=quick-back-git
pkgver=r161.36ca93a
pkgrel=1
pkgdesc="Quick, simple command line backup tool"
arch=('any')
url="https://github.com/PenguinSnail/Quick-Back"
license=('GPL3')
depends=('rsync' 'coreutils' 'util-linux' 'grep')
makedepends=('git')
provides=('quick-back-git')
source=('git://github.com/PenguinSnail/Quick-Back')
md5sums=('SKIP')

_gitname='Quick-Back'

pkgver() {
	cd $srcdir/$_gitname
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	install -D -m 755 $srcdir/$_gitname/quick-back $pkgdir/usr/bin/quick-back
	install -D -m 644 $srcdir/$_gitname/functions/colors.config $pkgdir/opt/quick-back/colors.config
	install -D -m 644 $srcdir/$_gitname/MANPAGE $pkgdir/usr/share/man/man8/quick-back.8
	install -D -m 644 $srcdir/$_gitname/README.md $pkgdir/usr/share/doc/quick-back/README.md
	install -D -m 644 $srcdir/$_gitname/LICENSE $pkgdir/usr/share/doc/quick-back/LICENSE
}