56 lines
1.8 KiB
Text
56 lines
1.8 KiB
Text
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=freetube
|
|
pkgver=0.20.0
|
|
pkgrel=0
|
|
pkgdesc="An open source desktop YouTube player built with privacy in mind."
|
|
arch="x86_64 aarch64" # blocked by electron
|
|
license="AGPL-3.0-only"
|
|
depends="
|
|
electron
|
|
font-roboto
|
|
"
|
|
makedepends="
|
|
electron-tasje
|
|
nodejs
|
|
yarn
|
|
"
|
|
url="https://freetubeapp.io"
|
|
source="
|
|
$pkgname-$pkgver.tar.gz::https://github.com/FreeTubeApp/FreeTube/archive/v$pkgver-beta.tar.gz
|
|
freetube.sh
|
|
tasje-dotdash.patch
|
|
"
|
|
options="net !check" # No testsuite
|
|
builddir="$srcdir"/FreeTube-$pkgver-beta
|
|
|
|
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
|
|
}
|
|
|
|
build() {
|
|
yarn --cache-folder "$srcdir"/yarn-cache run pack
|
|
|
|
tasje --config _scripts/ebuilder.config.js pack
|
|
}
|
|
|
|
package() {
|
|
# directory creation + program copy
|
|
install -Dm755 build/resources/app.asar -t "$pkgdir"/usr/lib/$pkgname/
|
|
|
|
# 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
|
|
install -Dm644 build/freetube.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
|
|
}
|
|
|
|
sha512sums="
|
|
b82cdaff82d7bd325f3127794160382c97be3b72c5ef4bb3f327a8ada6b609043bc30a1f6af59c38e23237aac7d8b6ea2685c22aa82469c8d08b96cb839a3099 freetube-0.20.0.tar.gz
|
|
2ce2effc794bb663789cefe968b5899122127983dbfa1b240aa33a2be383720b18204e6d01b4a550df72956f02b6636b79c93a58f470a970b09b770f5b8f2fc4 freetube.sh
|
|
d27cb896b65a7e8d52ffe86e5f74eed72b6cf976b28e1a13012d34c7eceba5ff6f20298017738dfa93c0336ffa52b8ee4da7e06b02747062898db7e678819526 tasje-dotdash.patch
|
|
"
|