blob: d24f492604b8cd4a1cf228f4436cb9b520caca76 (
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
|
# Maintainer: Alois <aloisianer@proton.me>
pkgname=tensamin-git
_pkgname=tensamin
pkgver=05e1ca
pkgrel=1
pkgdesc="True E2EE, decentralized messages. Open source and privacy first."
arch=('x86_64')
url="https://tensamin.net"
license=('custom')
depends=(nodejs
ffmpeg
glib2
nss
nspr
dbus
at-spi2-core
cups
cairo
gtk3
pango
mesa
expat
libxkbcommon
libxkbfile
wayland
systemd
alsa-lib
gcc
libvips
musl
libglvnd
libdrm
pipewire
libx11
libxcomposite
libxcursor
libxdamage
libxext
libxfixes
libxi
libxrandr
libxrender
libxtst
libxcb)
makedepends=('git' 'npm' 'dpkg' 'fakeroot')
provides=('tensamin')
conflicts=('tensamin' 'tensamin-bin')
source=("git+https://github.com/Tensamin/Frontend.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/Frontend"
git rev-parse HEAD | cut -c1-6
}
build() {
command -v bun >/dev/null 2>&1 || sudo npm i -g bun
cd "$srcdir/Frontend/web"
bun install
bun run build
cd "$srcdir/Frontend/desktop"
bun install
bun run build:git
}
package() {
cd "$srcdir/Frontend/desktop/out"
debfile=$(find "$PWD" -path '*.deb' -print -quit)
ar x "${debfile}"
tar -xf data.tar.xz -C "${pkgdir}"
}
|