spotube/aur-struct/PKGBUILD
RomanJos 0716ae63c6
add gst-plugins-good in PKGBUILD for arch linux
I had this line  `GStreamer element autoaudiosink not found. Please install it` and couldn't start playing a song, after installing `gst-plugins-good` it worked.

I now have `WebKit wasn't able to find a WebVTT encoder. Subtitles handling will be degraded unless gst-plugins-bad is installed.` but installing it only get rid of the message without having any noticeable improvement so I didn't put it in the PKGBUILD since the plugin have a lot of dependencies.
2022-04-04 22:48:01 +02:00

41 lines
1.4 KiB
Bash

# Maintainer: Kingkor Roy Tirtho <krtirho@gmail.com>
pkgname=spotube-bin
pkgver=2.0.0
pkgrel=2
epoch=
pkgdesc="A lightweight free Spotify crossplatform-client which handles playback manually, streams music using Youtube & no Spotify premium account is needed"
arch=(x86_64)
url="https://github.com/KRTirtho/spotube/"
license=('BSD-4-Clause')
groups=()
depends=('libkeybinder3' 'gst-plugins-good')
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("https://github.com/KRTirtho/spotube/releases/download/v${pkgver}/Spotube-linux-x86_64.tar.xz")
noextract=()
md5sums=(55955fb42d7e3f960392d68d45e2030a)
validpgpkeys=()
package(){
install -dm755 "${pkgdir}/usr/share/icons/spotube"
install -dm755 "${pkgdir}/usr/share/applications"
install -dm755 "${pkgdir}/usr/share/appdata"
install -dm755 "${pkgdir}/usr/share/${pkgname}"
install -dm755 "${pkgdir}/usr/bin"
mv ./spotube.desktop "${pkgdir}/usr/share/applications"
mv ./spotube-logo.png "${pkgdir}/usr/share/icons/spotube/"
mv ./com.github.KRTirtho.Spotube.appdata.xml "${pkgdir}/usr/share/appdata/spotube.appdata.xml"
cp -ra ./data ./lib ./spotube "${pkgdir}/usr/share/${pkgname}"
sed -i 's|com.github.KRTirtho.Spotube|spotube|' "${pkgdir}/usr/share/appdata/spotube.appdata.xml"
ln -s "/usr/share/${pkgname}/spotube" "${pkgdir}/usr/bin/spotube"
}