blob: 0e55173aa7a047e4c9356b064485b81e3e660a13 (
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
|
# Maintainer: picokan <todaysoracle@protonmail.com>
# Contributor: Plague-doctor <plague at privacyrequired dot com >
pkgname=freetube
_pkgname=FreeTube
pkgver=0.22.0
pkgrel=2
pkgdesc='An open source desktop YouTube player built with privacy in mind.'
arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64')
license=('AGPL3')
depends=( 'electron32')
makedepends=('yarn' 'nodejs>=20.0.0')
url=https://freetubeapp.io
source=(https://github.com/FreeTubeApp/FreeTube/archive/v$pkgver-beta.tar.gz
freetube.desktop
freetube.sh)
sha256sums=(09832e4fa7f0770e1dc98199f02180bc34f2aca5b371230a607648cc6126eadb
ada2b4b8f6a1e8896acbce4f4d311228d2c86026c273ffa00afa3247294f8b1e
62471c1caf55a146d6f84f19fcfc83d9f934295504ed96faaa4aca13c2625481)
prepare() {
sed -i "4i electronDist: '/usr/lib/electron'," "$srcdir/$_pkgname-$pkgver-beta/_scripts/ebuilder.config.js"
sed -i "s/targets = Platform.LINUX.*/targets = Platform.LINUX.createTarget(['dir'], arch)/" "$srcdir/$_pkgname-$pkgver-beta/_scripts/build.js"
}
build() {
cd "$srcdir/$_pkgname-$pkgver-beta"
yarn --cache-folder "${srcdir}/yarn-cache" install
yarn --cache-folder "${srcdir}/yarn-cache" run build
}
package() {
install -d "${pkgdir}"/usr/lib/${pkgname}
cp -R "./$_pkgname-$pkgver-beta/build/linux-unpacked/resources/app.asar" "$pkgdir/usr/lib/$pkgname"
install -Dm755 "./freetube.sh" "$pkgdir/usr/bin/$pkgname"
cd $_pkgname-$pkgver-beta
install -Dm644 "./_icons/icon.svg" "$pkgdir/usr/share/pixmaps/$pkgname.svg"
cd ..
install -Dm644 "freetube.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
}
|