blob: 3f36da77179665acca8005a02e6a3bf76e9d9191 (
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
39
40
|
# -*- mode: Shell-script; eval: (setq indent-tabs-mode 't); eval: (setq tab-width 4) -*-
# Maintainer: Dominic Meiser [git at msrd0 dot de]
_crate="refinery_cli"
pkgname="refinery_cli"
pkgver=0.8.9
pkgrel=1
pkgdesc='Provides the CLI for the Refinery crate'
url='https://crates.io/crates/refinery_cli'
license=('MIT')
depends=('gcc-libs' 'openssl' 'sqlite')
makedepends=('cargo')
source=("$_crate-$pkgver.tar.gz::https://crates.io/api/v1/crates/refinery_cli/0.8.9/download")
sha512sums=('d6eef4eb87960e562d069d1a7e685b9dfb45d335def68c5c13ff1970666f48c098e084ad0b4f4cb6f389a84a986f2be9fb9f770e47daeb799f093695f6b7afdd')
# Tier 1 architectures supported by Rust (https://doc.rust-lang.org/nightly/rustc/platform-support.html#tier-1)
arch=('aarch64' 'i686' 'x86_64')
prepare() {
cd "$srcdir/$_crate-$pkgver"
cargo fetch --locked
}
build() {
cd "$srcdir/$_crate-$pkgver"
cargo build \
--offline \
--locked \
--no-default-features \
--features 'postgresql,mysql,sqlite' \
--release
}
package() {
cd "$srcdir/$_crate-$pkgver"
install -Dm755 "target/release/refinery" -t "$pkgdir/usr/bin"
}
|