blob: 8039fe197bf3ec9186045317a4184202a5c2e87d (
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
37
38
|
# Maintainer: Ovyerus <ovy@ovyerus.com>
# Contributor: Duale Siad <me@wale.id.au>
pkgname=bandsnatch
pkgver=0.3.3
pkgrel=1
pkgdesc="A CLI batch downloader for your Bandcamp collection."
url="https://github.com/Ovyerus/bandsnatch"
license=('MIT')
arch=('x86_64' 'armv7h' 'aarch64')
makedepends=('rust' 'cargo' 'git')
provides=("${pkgname}")
conflicts=("${pkgname}")
source=("https://github.com/Ovyerus/bandsnatch/archive/v${pkgver}.zip")
sha256sums=('afa71d1ca2248aa430a7436c8658fd44fdbfb051d0998b2295ad786b7afcdea9')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
cargo fetch --locked
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
cargo build --release --locked
}
check() {
cd "${srcdir}/${pkgname}-${pkgver}"
cargo test --release --locked
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
#cargo install --root "${pkgdir}/usr" --path "${srcdir}/${pkgname}-${pkgver}"
install -Dm 755 "target/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
}
|