blob: 4e23caab29f6a1899429bc952b6009de28bf63b0 (
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
35
36
|
pkgname="autorestic-bin"
pkgver=1.4.1
_pkgid="${pkgname%-bin}-${pkgver}"
pkgrel=1
pkgdesc="High level CLI utility for restic"
arch=('x86_64' 'i686' 'aarch32' 'aarch64')
url="https://github.com/cupcakearmy/${pkgname%-bin}"
license=('Apache')
depends=('restic')
provides=("${pkgname%-bin}")
conflicts=("${pkgname%-bin}")
_arch_i686="386"
_arch_x86_64="amd64"
_arch_aarch64="arm64"
_arch_aarch32="arm"
sha256sums_x86_64=('e995abe2ba96af7fd63423ad777ac6292999da2ed3d25d757d022ee4e1a956d1')
sha256sums_i686=('625d250eac48122f4d59bf6f913c144484bdf76d40671df0625d068d673b9519')
sha256sums_aarch32=('f77271428b3680418acdd01a9aefb14c04e2ce2e62283b15abd91c31f9d03eb0')
sha256sums_aarch64=('ebdb6b383986d6080f8451951f62c93eebc84605127527f94712eeb5b2c5c8d0')
source_i686=("${pkgname%-bin}-${pkgver}-$arch.bz2"::"${url}/releases/download/v${pkgver}/${pkgname%-bin}_${pkgver}_linux_${_arch_i686}.bz2")
source_x86_64=("${pkgname%-bin}-${pkgver}-$arch.bz2"::"${url}/releases/download/v${pkgver}/${pkgname%-bin}_${pkgver}_linux_${_arch_x86_64}.bz2")
source_aarch64=("${pkgname%-bin}-${pkgver}-$arch.bz2"::"${url}/releases/download/v${pkgver}/${pkgname%-bin}_${pkgver}_linux_${_arch_aarch64}.bz2")
source_aarch32=("${pkgname%-bin}-${pkgver}-$arch.bz2"::"${url}/releases/download/v${pkgver}/${pkgname%-bin}_${pkgver}_linux_${_arch_aarch32}.bz2")
prepare() {
bzip2 -fdc ${pkgname%-bin}-${pkgver}-$arch.bz2 > autorestic
chmod +x autorestic
}
package() {
mkdir -p "${pkgdir}/usr/local/bin/"
cp "${srcdir}/autorestic" "${pkgdir}/usr/local/bin/autorestic"
}
|