2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-15 17:47:21 +00:00
restic/doc/PKGBUILD

39 lines
1.0 KiB
Bash
Raw Normal View History

# Maintainer: Florian Daniel <fd@noxa.de>
# Contributor: Eldar Tsraev <elts@culab.org>
# Contributor: Andreas Guth <andreas.guth@rwth-aachen.de>
2015-06-27 09:36:41 +00:00
# Contributor: Alexander Neumann <alexander@bumpern.de>
options=(!strip)
pkgname=restic-git
2015-06-27 09:36:41 +00:00
pkgver=r702.c143f8c
pkgrel=1
pkgdesc="restic is a program that does backups right."
arch=('i686' 'x86_64')
url="https://github.com/restic/restic"
license=('BSD')
depends=('glibc')
makedepends=('git' 'go>=1.3')
provides=('restic')
conflicts=('restic')
2015-06-27 09:36:41 +00:00
source=("${pkgname}::git+https://github.com/restic/restic")
md5sums=('SKIP')
importpath='github.com/restic/restic'
pkgver() {
2015-06-27 09:36:41 +00:00
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)";
}
build() {
2015-06-27 09:36:41 +00:00
cd "$pkgname"
go run build.go
}
package() {
2015-06-27 09:36:41 +00:00
install -Dm755 "$pkgname/restic" "$pkgdir/usr/bin/restic"
install -Dm644 "$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 "$pkgname/README.md" "$pkgdir/usr/share/doc/$pkgname/README"
}
# vim:set ts=2 sw=2 et: