-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathPKGBUILD
More file actions
33 lines (30 loc) · 1.2 KB
/
Copy pathPKGBUILD
File metadata and controls
33 lines (30 loc) · 1.2 KB
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
# Maintainer: Stephen Power <simpilldev@gmail.com>
pkgname=rustytube
pkgver=0.2.0
pkgrel=1
pkgdesc="A youtube client written in Rust using Leptos and Tauri; Designed with DaisyUI and Tailwind."
arch=('x86_64')
url="https://github.com/opensourcecheemsburgers/RustyTube"
license=('AGPL-3.0')
depends=('webkit2gtk' 'libayatana-appindicator')
makedepends=('npm' 'rustup' 'pkgconf')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('SKIP')
build() {
cd $srcdir/${pkgname}-${pkgver}
rustup update nightly-unknown-linux-gnu
rustup component add rust-src --toolchain nightly-unknown-linux-gnu
cargo install trunk
cargo install tauri-cli
rustup target add wasm32-unknown-unknown
cd frontend
npm install
cd ..
cargo tauri build -b none --target x86_64-unknown-linux-gnu -- -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort
}
package() {
cd $srcdir/${pkgname}-${pkgver}
install -Dm755 target/x86_64-unknown-linux-gnu/release/${pkgname} -t ${pkgdir}/usr/bin
install -Dm644 src-tauri/icons/icon.svg ${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname}.svg
install -Dm644 ${srcdir}/${pkgname}.desktop -t ${pkgdir}/usr/share/applications
}