blob: 4c40d10f0cd26b22ee293d2581e1f85d29faa6ea (
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
|
# Maintainer: OmegaRogue <omegarogue@omegavoid.codes>
pkgname=opendeck
pkgver=v2.2.1
pkgrel=1
pkgdesc="A cross-platform desktop application that provides functionality for stream controller devices."
arch=('x86_64')
url="https://github.com/ninjadev64/OpenDeck"
license=('GPL-3.0')
makedepends=(git deno-init cargo dpkg hidapi webkit2gtk libappindicator-gtk3)
provides=("${pkgname}")
conflicts=("${pkgname}")
options=('!lto')
source=(
"${pkgname}::git+https://github.com/ninjadev64/OpenDeck#tag=${pkgver//_/-}"
)
sha256sums=('4dc2797fa42a3c4309d2472015de22f9dc809e1b79dc0880b265e80b8cebe81b')
prepare() {
cd "$srcdir/${pkgname}/src-tauri"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
cd ..
export DENO_DIR="${srcdir}/deno-cache"
deno install || (echo "please run 'sudo deno upgrade' before installing the package again" && exit 0)
}
build() {
cd "$srcdir/${pkgname}/src-tauri"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
export DENO_DIR="${srcdir}/deno-cache"
deno task tauri build --ci -b deb -- --frozen
}
package() {
cd "$srcdir/${pkgname}"
dpkg-deb -R $(find . -type f -name "*.deb") $pkgdir
rm -rf $pkgdir/DEBIAN
}
|