2023-02-22 04:55:47 +00:00
|
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
pkgname=freetube
|
2024-04-14 22:14:38 +00:00
|
|
|
pkgver=0.20.0
|
2024-06-02 23:06:57 +00:00
|
|
|
pkgrel=1
|
2023-02-22 04:55:47 +00:00
|
|
|
pkgdesc="An open source desktop YouTube player built with privacy in mind."
|
2023-11-24 22:43:34 +00:00
|
|
|
arch="x86_64 aarch64" # blocked by electron
|
2023-02-22 04:55:47 +00:00
|
|
|
license="AGPL-3.0-only"
|
|
|
|
depends="
|
|
|
|
electron
|
|
|
|
font-roboto
|
|
|
|
"
|
|
|
|
makedepends="
|
2024-04-14 22:14:38 +00:00
|
|
|
electron-tasje
|
|
|
|
nodejs
|
2023-02-22 04:55:47 +00:00
|
|
|
yarn
|
|
|
|
"
|
|
|
|
url="https://freetubeapp.io"
|
|
|
|
source="
|
|
|
|
$pkgname-$pkgver.tar.gz::https://github.com/FreeTubeApp/FreeTube/archive/v$pkgver-beta.tar.gz
|
|
|
|
freetube.sh
|
2024-04-14 22:14:38 +00:00
|
|
|
tasje-dotdash.patch
|
2023-02-22 04:55:47 +00:00
|
|
|
"
|
2023-11-24 22:43:34 +00:00
|
|
|
options="net !check" # No testsuite
|
2023-02-22 04:55:47 +00:00
|
|
|
builddir="$srcdir"/FreeTube-$pkgver-beta
|
|
|
|
|
2024-04-14 22:14:38 +00:00
|
|
|
export npm_config_nodedir=/usr/include/electron/node_headers
|
|
|
|
export npm_config_build_from_source=true
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
|
|
|
|
yarn --cache-folder "$srcdir"/yarn-cache install --frozen-lockfile --ignore-scripts
|
|
|
|
}
|
|
|
|
|
2023-02-22 04:55:47 +00:00
|
|
|
build() {
|
2024-04-14 22:14:38 +00:00
|
|
|
yarn --cache-folder "$srcdir"/yarn-cache run pack
|
|
|
|
|
|
|
|
tasje --config _scripts/ebuilder.config.js pack
|
2023-02-22 04:55:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
# directory creation + program copy
|
2024-04-14 22:14:38 +00:00
|
|
|
install -Dm755 build/resources/app.asar -t "$pkgdir"/usr/lib/$pkgname/
|
2023-02-22 04:55:47 +00:00
|
|
|
|
|
|
|
# link binaries + other items
|
|
|
|
install -Dm755 "$srcdir"/freetube.sh "$pkgdir"/usr/bin/$pkgname
|
|
|
|
install -Dm644 "$builddir"/_icons/icon.svg "$pkgdir"/usr/share/icons/hicolor/scalable/$pkgname.svg
|
2024-04-14 22:14:38 +00:00
|
|
|
install -Dm644 build/freetube.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
|
2023-02-22 04:55:47 +00:00
|
|
|
}
|
2023-11-24 22:43:34 +00:00
|
|
|
|
2023-02-22 04:55:47 +00:00
|
|
|
sha512sums="
|
2024-04-14 22:14:38 +00:00
|
|
|
b82cdaff82d7bd325f3127794160382c97be3b72c5ef4bb3f327a8ada6b609043bc30a1f6af59c38e23237aac7d8b6ea2685c22aa82469c8d08b96cb839a3099 freetube-0.20.0.tar.gz
|
|
|
|
2ce2effc794bb663789cefe968b5899122127983dbfa1b240aa33a2be383720b18204e6d01b4a550df72956f02b6636b79c93a58f470a970b09b770f5b8f2fc4 freetube.sh
|
|
|
|
d27cb896b65a7e8d52ffe86e5f74eed72b6cf976b28e1a13012d34c7eceba5ff6f20298017738dfa93c0336ffa52b8ee4da7e06b02747062898db7e678819526 tasje-dotdash.patch
|
2023-02-22 04:55:47 +00:00
|
|
|
"
|