summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0930be736f0353bfd9ff5b1a7e2adb11543fa7e8 (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
33
34
# Maintainer: Dan Habot <dan.habot@gmail.com>
pkgname=backup-brute
pkgver=1.4.1
pkgrel=1.1
pkgdesc="Go utility for creating backups of large segments of your operating system to s3 using AGE encryption."
arch=('x86_64')
url="https://github.com/danhab99/backup-brute"
license=('MIT')
makedepends=('go')
source=("https://github.com/danhab99/backup-brute/tarball/$pkgver")

prepare() {
  _dirname=$(tar -tf "${source[0]##*/}" | head -n 1 | cut -d/ -f1)
  mv $_dirname $pkgname-$pkgver
}

build() {
  cd "$srcdir/backup-brute-$pkgver"
  export GOPATH="$srcdir/gopath"
  export GO111MODULE=auto
  go build \
    -trimpath \
    -buildmode=pie \
    -mod=readonly \
    -modcacherw \
    -o backup-brute
}

package() {
  cd "$srcdir/backup-brute-$pkgver"
  install -Dm755 backup-brute "$pkgdir/usr/bin/backup-brute"
}

md5sums=('6520b8db331122e49a1e2d52b3473507')