blob: 94d39e61cf249ad234fab4db5dfdd4d3214a8c6e (
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
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
pkgname=gitbutler
pkgver=0.11.7
pkgrel=1
url="https://github.com/${pkgname}app/$pkgname"
pkgdesc='Version control client, backed by Git, powered by Tauri/Rust/Svelte'
arch=(x86_64)
license=(LicenseRef-FSL-1.1-MIT)
depends=(gtk3
webkit2gtk)
makedepends=(cargo-nightly
cargo-tauri
nodejs
pnpm)
options=(!lto)
_archive="$pkgname-release-$pkgver"
source=("$url/archive/release%2F$pkgver/$_archive.tar.gz")
sha256sums=('3b80b5ebf46bbfeaf7f060f30b2ff2102bf9641bbeb1cfa3eac4bfc2f0ad31c4')
prepare() {
cd "$_archive"
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
pnpm install --frozen-lockfile
}
build() {
cd "$_archive"
env \
RUSTUP_TOOLCHAIN=nightly \
CARGO_TARGET_DIR=target \
cargo build --release
# cargo tauri build --bundles deb
}
package() {
cd "$_archive"
local target="target/release/$pkgname"
install -Dm0755 -t "$pkgdir/usr/bin/" "$target"-{tauri,git-askpass,git-setsid}
}
|