blob: b6096cdc686ece61f5c8d70a2d7949601027c4f7 (
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
|
# Maintainer: "Amhairghin" Oscar Garcia Amor (https://ogarcia.me)
# Contributor: Jef Roosens
pkgname='cinny-desktop'
pkgver='4.5.1'
pkgrel='1'
pkgdesc='Matrix client focusing primarily on a simple, elegant and secure interface.'
arch=('x86_64')
url='https://cinny.in/'
license=('MIT')
depends=('gst-plugins-good' 'gtk3' 'libappindicator-gtk3' 'librsvg' 'libvips' 'openssl' 'sqlite' 'webkit2gtk')
makedepends=('nodejs' 'npm' 'rust')
options=('!debug')
source=("${pkgname}-${pkgver}.zip::https://github.com/cinnyapp/${pkgname}/releases/download/v${pkgver}/${pkgname}-v${pkgver}.zip")
b2sums=('40254f9d19ed543bdc0e6af6a9e1ab18a495722ba6a9021f002846b85ffcadb6968dfe3a0e3bd854d33b52b1911c4f67b3db9f2f5dbd1e508a0d7a0cae40e283')
build() {
cd "${pkgname}"
msg2 'Installing Node dependencies...'
cd 'cinny' && npm --legacy-peer-deps ci
cd .. && npm ci
msg2 'Running Tauri build...'
# With the default memory limit, the build fails due to having insufficient
# memory available. 4GB seems to be enough for now.
NODE_OPTIONS=--max_old_space_size=4096 npm run tauri build -- --bundles 'deb'
}
package() {
ar x "${pkgname}/src-tauri/target/release/bundle/deb/cinny_${pkgver}_amd64.deb" 'data.tar.gz'
tar xzf 'data.tar.gz' -C "${pkgdir}"
}
|