summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2ca275cccde656fcf06e08ddffb4182d339beffb (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
# Maintainer: Thomas Recloux <thomas at recloux dot fr>

pkgname=rustic
pkgver=0.2.1
pkgrel=1
pkgdesc='Rustic is a wrapper around the Restic backup program'
url='https://github.com/bnavetta/rustic'
license=(MIT)
arch=(x86_64)
depends=(restic)
makedepends=(cargo rust git)
conflicts=(rustic)
provides=(rustic)
source=("git+https://github.com/bnavetta/$pkgname#tag=v$pkgver")
sha256sums=("SKIP")

build() {
  cd "$pkgname"
  cargo build --release
}

package() {
  cd "$pkgname"
  install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
}