# Template file for 'freetube'
pkgname=freetube
version=0.23.4
revision=0
only_for_archs="x86_64"
hostmakedepends="tar xz"
short_desc="An open source desktop YouTube player built with privacy in mind."
maintainer="Naz <ndpm13@ch-naseem.com>"
license="AGPL-3.0"
homepage="https://freetubeapp.io/"
distfiles="https://github.com/FreeTubeApp/FreeTube/releases/download/v${version}-beta/freetube_${version}_amd64.deb"
checksum=01120e2f039a179cdd342a55cab9608112d31497b80a5ef364da74d73e9fc18e
nostrip=yes

do_extract() {
  mkdir -p ${DESTDIR}
  ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/freetube_${version}_amd64.deb
  tar xf data.tar.xz -C ${DESTDIR}
}

do_install() {
	vmkdir usr/bin
  ln -sf /opt/FreeTube/freetube ${DESTDIR}/usr/bin/freetube
  # Cleanup up
  rm -rf ${DESTDIR}/etc
}
