blob: c4fd6968564d6da040b2ffcb6102561ce6bca0eb (
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
|
# Maintainer: OmegaRogue <omegarogue@omegavoid.codes>
pkgname=opendeck-git
pkgver=r99.4bbd9f3
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%-git}")
conflicts=("${pkgname%-git}")
options=('!lto')
source=(
"${pkgname%-git}::git+https://github.com/ninjadev64/OpenDeck"
)
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/${pkgname%-git}/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%-git}/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%-git}"
dpkg-deb -R $(find . -type f -name "*.deb") $pkgdir
rm -rf $pkgdir/DEBIAN
}
|