blob: 5e51f32b59588f42c66e906887d0e89d4c1f9acb (
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
|
# Maintainer: ArcticLampyrid <ArcticLampyrid@outlook.com>
pkgname=netmount
pkgver=1.1.1
pkgrel=1
pkgdesc="Unified management and mounting of cloud storage facilities"
arch=('x86_64' 'aarch64')
url="https://github.com/VirtualHotBar/NetMount"
license=('AGPL-3.0-or-later')
depends=('atk'
'cairo'
'glib2'
'gtk3'
'libsoup'
'openssl'
'pango'
'webkit2gtk'
'zstd'
'zlib-ng')
makedepends=('moreutils'
'pnpm'
'rust'
'jq')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz"
"${pkgname}.desktop")
sha512sums=('e6ced51081200efa519fd791595a84666cbe5ac0f08f01f4bf0c3dc5d7d914410ae190836d178c3d191eaed8eb37cce91528b77137c7778ec1c59dd854ade7fe'
'84b20dc4ce7d56889f899fdc0966159c2eac6f6e322476e86c046f0df1c245c33d48c0238e6aaad3ac50cd0c08d11f094c5232a51c11ad42e694f9f86bb59179')
options=(!lto)
prepare() {
cd $srcdir/NetMount-${pkgver}
cd src-tauri
jq '.bundle.active = false' tauri.conf.json | sponge tauri.conf.json
}
build() {
cd $srcdir/NetMount-${pkgver}
pnpm install
pnpm tauri-build
}
package() {
cd $srcdir/NetMount-${pkgver}
install -Dm755 src-tauri/target/release/${pkgname} -t ${pkgdir}/usr/bin
install -d ${pkgdir}/usr/lib/${pkgname}/res
cp -r src-tauri/target/release/res ${pkgdir}/usr/lib/${pkgname}
install -Dm644 public/img/color.svg ${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname}.svg
install -Dm644 ${srcdir}/${pkgname}.desktop -t ${pkgdir}/usr/share/applications
}
|