user/freetube: new aport
This commit is contained in:
parent
74b109f338
commit
2419a725c1
5 changed files with 126 additions and 0 deletions
50
user/freetube/APKBUILD
Normal file
50
user/freetube/APKBUILD
Normal file
|
@ -0,0 +1,50 @@
|
|||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
|
||||
pkgname=freetube
|
||||
pkgver=0.18.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="
|
||||
npm
|
||||
yarn
|
||||
"
|
||||
url="https://freetubeapp.io"
|
||||
source="
|
||||
$pkgname-$pkgver.tar.gz::https://github.com/FreeTubeApp/FreeTube/archive/v$pkgver-beta.tar.gz
|
||||
freetube.sh
|
||||
freetube.desktop
|
||||
package-only-necessary.patch
|
||||
disable-asar.patch
|
||||
"
|
||||
options="!check" # No testsuite
|
||||
builddir="$srcdir"/FreeTube-$pkgver-beta
|
||||
|
||||
build() {
|
||||
yarn --cache-folder "$srcdir"/yarn-cache install
|
||||
yarn --cache-folder "$srcdir"/yarn-cache --frozen-lockfile build
|
||||
}
|
||||
|
||||
package() {
|
||||
# directory creation + program copy
|
||||
install -dm755 "$pkgdir"/usr/lib
|
||||
cp -r "$builddir"/build/linux-unpacked/resources/app "$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 "$srcdir"/freetube.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
|
||||
}
|
||||
sha512sums="
|
||||
246a935a7c810ce7a2b559072d723935951a34ebf267e9ed9ccc39a73194ad16e7e2ef8f0998314aee1304cbf59c3a7ae9ccb22664a12677c996a44eca378856 freetube-0.18.0.tar.gz
|
||||
8508af3d983b305b9e3c8ffb478c723feb4f8301a69cd1ad588854ce13e9b51bab1b68599c2f7f8a6005e9aa8949d36d057a3660d70e4acf2f4d125e5f8ef136 freetube.sh
|
||||
0b74e115852e71f665730a09e4d06a07fd3ae68fbc9bf8aaf280a32b70298910c692c99535cd2294df95394ad9b3b9f4a127bb6c9d50824946895dbb54649872 freetube.desktop
|
||||
88a09d02289ef86044211afd973b75b17a09101739282b7aa05ccf9961c12650e8c04eefe526f27c510cef26c401394b435a60c761714a04b53743972d648b47 package-only-necessary.patch
|
||||
67107797825cbb98cc3a46e288fe92e06e0cc91b1a44a10edcf68045d06c9679c587bd2706051ce0b109091295247b5e8ec572297cd0c72532afd529cf56449d disable-asar.patch
|
||||
"
|
26
user/freetube/disable-asar.patch
Normal file
26
user/freetube/disable-asar.patch
Normal file
|
@ -0,0 +1,26 @@
|
|||
From 913f1a251bee06fc8e8380b9c5e5ac3ceadcb876 Mon Sep 17 00:00:00 2001
|
||||
From: Antoine Martin <dev@ayakael.net>
|
||||
Date: Fri, 12 Aug 2022 22:34:57 -0400
|
||||
Subject: [PATCH 1/1] disable-asar
|
||||
|
||||
---
|
||||
package.json | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/package.json b/package.json
|
||||
index 842bdda8..a82a1ec3 100644
|
||||
--- a/package.json
|
||||
+++ b/package.json
|
||||
@@ -18,6 +18,9 @@
|
||||
"bugs": {
|
||||
"url": "https://github.com/FreeTubeApp/FreeTube/issues"
|
||||
},
|
||||
+ "build": {
|
||||
+ "asar" : false
|
||||
+ },
|
||||
"scripts": {
|
||||
"build": "run-s rebuild:electron pack build-release",
|
||||
"build:arm64": "run-s rebuild:electron pack build-release:arm64",
|
||||
--
|
||||
2.36.2
|
||||
|
10
user/freetube/freetube.desktop
Normal file
10
user/freetube/freetube.desktop
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Desktop Entry]
|
||||
Name=FreeTube
|
||||
GenericName=YouTube Player
|
||||
Comment=An open source desktop YouTube player built with privacy in mind.
|
||||
Exec=freetube %U
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Icon=freetube
|
||||
MimeType=x-scheme-handler/freetube;
|
||||
Categories=Network;
|
3
user/freetube/freetube.sh
Normal file
3
user/freetube/freetube.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
exec electron /usr/lib/freetube "$@"
|
37
user/freetube/package-only-necessary.patch
Normal file
37
user/freetube/package-only-necessary.patch
Normal file
|
@ -0,0 +1,37 @@
|
|||
From f4185e0b10e2bd88e2e5208ca9059083f0694f1f Mon Sep 17 00:00:00 2001
|
||||
From: Antoine Martin <dev@ayakael.net>
|
||||
Date: Tue, 26 Jul 2022 22:11:45 -0400
|
||||
Subject: [PATCH 1/1] package-only-necessary
|
||||
|
||||
---
|
||||
_scripts/build.js | 5 +++--
|
||||
1 file changed, 3 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/_scripts/build.js b/_scripts/build.js
|
||||
index fea20bf..17db2a3 100644
|
||||
--- a/_scripts/build.js
|
||||
+++ b/_scripts/build.js
|
||||
@@ -36,12 +36,13 @@ if (platform === 'darwin') {
|
||||
arch = Arch.armv7l
|
||||
}
|
||||
|
||||
- targets = Platform.LINUX.createTarget(['deb', 'zip', '7z', 'apk', 'rpm', 'AppImage', 'pacman'], arch)
|
||||
+ targets = Platform.LINUX.createTarget(['dir'], arch)
|
||||
}
|
||||
|
||||
const config = {
|
||||
appId: `io.freetubeapp.${name}`,
|
||||
copyright: 'Copyleft © 2020-2021 freetubeapp@protonmail.com',
|
||||
+ electronDist: '/usr/lib/electron',
|
||||
// asar: false,
|
||||
// compression: 'store',
|
||||
productName,
|
||||
@@ -92,7 +93,7 @@ const config = {
|
||||
linux: {
|
||||
category: 'Network',
|
||||
icon: '_icons/icon.svg',
|
||||
- target: ['deb', 'zip', '7z', 'apk', 'rpm', 'AppImage', 'pacman'],
|
||||
+ target: ['dir'],
|
||||
},
|
||||
// See the following issues for more information
|
||||
// https://github.com/jordansissel/fpm/issues/1503
|
Loading…
Reference in a new issue