blob: 7e805964537a9527defb2a9c4b73cb1ccb07c81a (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Maintainer: Jonas Geiler <aur@jonasgeiler.com>
# Maintainer: SoftExpert <softexpert at gmail dot com>
pkgname=yaak
# renovate: datasource=github-releases depName=yaakapp/app
pkgver=2024.11.5
# should be the same commit hash used in the GitHub Actions run for the current release tag
# (check the step where it checks out the plugins repository)
_plugins_commit=9d24aefba186d1c3ebec6eeec90eba2a66435a98
pkgrel=2
pkgdesc='Simple and intuitive API client for calling REST, GraphQL, and gRPC APIs'
arch=(aarch64 armv7h i686 pentium4 x86_64)
url='https://yaak.app/'
license=(MIT)
depends=(
# As reported by namcap
cairo
gcc-libs
gdk-pixbuf2
glib2
glibc
gtk3
hicolor-icon-theme
libsoup3
pango
webkit2gtk-4.1
)
makedepends=(
appmenu-gtk-module # Tauri
cargo # Rust dependencies & Tauri build
git # Sources
libappindicator-gtk3 # Tauri
librsvg # Tauri
nodejs # Custom scripts & web build
npm # Node dependencies & web build
protobuf # Yaak
)
provides=(yaak-app)
conflicts=(
yaak-app-beta
yaak-appimage
yaak-bin
yaak-git
)
options=(
!lto # Some Rust dependencies don't support link time optimization
!strip # Stripping symbols would break the output binary
!emptydirs # Remove empty directories from package because why not
)
source=(
"yaak::git+https://github.com/yaakapp/app.git#tag=v${pkgver}"
"yaak-plugins::git+https://github.com/yaakapp/plugins.git#commit=${_plugins_commit}"
)
b2sums=('c457aaac9f0c8b8b24e5398f6fa8f7c6c5c94711e5420723615b4848e24ea1e596b11dbe53616a16b1221f6c34815ffb199204e7cda9ff6709a242d76dfd83b7'
'862b6920177f90b9b13e3737cfc57f415050a1e40257bd298713488df71b03d606c253e1d2b4d20bf51314ce075a6349aa7338a9e76174df122be856d2120b6a')
build() {
export YAAK_VERSION="${pkgver}"
export YAAK_PLUGINS_DIR="${srcdir}/yaak-plugins/"
export CI=true
cd "${srcdir}/yaak/"
npm ci
npm install @yaakapp/cli
npm run replace-version
npm run tauri build -- --verbose --bundles deb
sed -e 's|Name=yaak|Name=Yaak|' \
-e '$aGenericName=API Client' \
-i "${srcdir}/yaak/src-tauri/target/release/bundle/deb/yaak_${pkgver}_"*/data/usr/share/applications/yaak.desktop
}
package() {
cp -a \
"${srcdir}/yaak/src-tauri/target/release/bundle/deb/yaak_${pkgver}_"*/data/usr/ \
"${pkgdir}/usr/"
install -Dm644 \
"${srcdir}/yaak/LICENSE" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|