blob: 471c749ebe08ed95db4b1c9599f1ac86b17a8f43 (
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
42
43
44
45
46
47
48
49
50
51
52
53
|
# Maintainer: liv <aur@insects.institute>
pkgname=gg-jujutsu
pkgver=0.37.2
pkgrel=1
pkgdesc='A GUI for the version control system Jujutsu.'
arch=(x86_64 aarch64)
url='https://github.com/gulbanana/gg'
license=(Apache-2.0)
depends=(
gdk-pixbuf2
glibc
glib2
gtk3
pango
webkit2gtk-4.1
)
makedepends=(
cargo
git
npm
)
provides=(gg-jujutsu)
conflicts=(
gg-jujutsu-bin
)
source=("gg::git+https://github.com/gulbanana/gg.git#tag=v${pkgver}")
b2sums=('f7db97c636d36c7bdef5dbb52ab602cc01de8e0ed6aa2109632689daaedd072f97c7d2aa9d6a3e7ead8ad5be73ecc110d7cdd64aca55eed424fbd57613f4d631')
prepare() {
export RUSTUP_TOOLCHAIN=stable
cd "${srcdir}/gg/src-tauri/"
cargo fetch --locked --target "$(rustc --print host-tuple)"
}
build() {
export GG_VERSION="${pkgver}"
export TAURI_APP_PATH="${srcdir}/gg/src-tauri/"
cd "${srcdir}/gg/"
npm ci
npm run tauri build -- --bundles deb
}
package() {
cp -a \
"${srcdir}/gg/src-tauri/target/release/bundle/deb/gg_${pkgver}_"*/data/usr/ \
"${pkgdir}/usr/"
install -Dm644 \
"${srcdir}/gg/LICENSE" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|