blob: 50a2af2e1a3143966933533a4518f3faa423773e (
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
|
# Maintainer: iamawacko <iamawacko@protonmail.com>
pkgname='synth-git'
pkgver=0.6.9.r10.g8b3b738
pkgrel=3
pkgdesc='The Open Source Data Generator'
url='https://getsynth.com/'
arch=('any')
license=('Apache-2.0')
source=("$pkgname::git+https://github.com/shuttle-hq/synth")
sha256sums=('SKIP')
conflicts=('synth')
provides=('synth')
makedepends=('cargo-nightly' 'sqlite' 'git')
depends=('sqlite')
pkgver() {
cd "synth-git"
git describe --long --abbrev=7 --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "synth-git"
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "synth-git"
export CARGO_TARGET_DIR=target
cargo +nightly build --frozen --release --bin synth
}
package() {
cd "synth-git"
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/synth"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/synth/LICENSE"
}
|