template 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # Template file for 'freetube'
  2. pkgname=freetube
  3. version=0.7.0
  4. revision=1
  5. archs="x86_64"
  6. wrksrc=FreeTube-${version}-beta
  7. hostmakedepends="nodejs yarn-bin"
  8. depends="nodejs"
  9. short_desc="Open source desktop YouTube player built with privacy in mind"
  10. maintainer="reback00 <reback00@protonmail.com>"
  11. license="GPL-3.0-or-later"
  12. homepage="https://freetubeapp.io/"
  13. distfiles="https://github.com/FreeTubeApp/FreeTube/archive/v${version}-beta.tar.gz"
  14. checksum=1c3287b9df9134540a9b7538a74dc43eae3e9b2e1a33cca9931a18882511b7bc
  15. pre_build() {
  16. yarn add electron-builder --dev
  17. }
  18. do_build() {
  19. npm run make:linux:x64:tar
  20. }
  21. do_install() {
  22. mkdir -p "${DESTDIR}/opt/${pkgname}"
  23. vcopy "${wrksrc}/dist/linux-unpacked/*" "opt/${pkgname}"
  24. vinstall "${wrksrc}/build/icons/256x256.png" 644 usr/share/pixmaps "${pkgname}.png"
  25. mkdir -p "${DESTDIR}/usr/bin"
  26. ln -sf "/opt/${pkgname}/freetube" "${DESTDIR}/usr/bin/${pkgname}"
  27. # .desktop file
  28. mkdir -p "${DESTDIR}/usr/share/applications"
  29. vcopy "${FILESDIR}/freetube.desktop" "usr/share/applications/${pkgname}.desktop"
  30. }