blob: e2a9f79fb7b0f09498d3df9410f362e134f906c2 (
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
41
|
# Maintainer: iamawacko <iamawacko@protonmail.com>
pkgname='synth'
pkgver='0.6.9'
pkgrel=4
pkgdesc='The Open Source Data Generator'
url='https://getsynth.com/'
arch=('any')
license=('Apache-2.0')
source=("https://github.com/shuttle-hq/synth/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('f89fc355dc0e311a6e5e0e8047f4721f23e35cdcb3355e85c7c66e8e2e67da91')
makedepends=('cargo-nightly' 'sqlite')
depends=('sqlite')
prepare() {
cd "$pkgname-$pkgver"
case $CARCH in
"pentium4")
cargo fetch --locked --target "i686-unknown-linux-gnu"
;;
*)
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
;;
esac
}
build() {
cd "$pkgname-$pkgver"
export CARGO_TARGET_DIR=target
cargo +nightly build --frozen --release --bin synth
}
check() {
cd "$pkgname-$pkgver"
cargo +nightly test --frozen
}
package() {
cd "$pkgname-$pkgver"
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|