summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6ce9b57fcfbd2a6376e712ccbc291bc4f7c1bb15 (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
# Maintainer: Arghyadip Chakraborty <dev@arghyac.com>

pkgname=youtube-music-pake
_pkgname="YouTube Music"
_appname=you-tube-music
pkgver=2.5.1
pkgrel=1
pkgdesc="${_pkgname} desktop app packaged by Pake"
arch=('x86_64')
url="https://music.youtube.com/"
_ghurl="https://github.com/tw93/Pake"
license=('MIT')
depends=(
    'gtk3'
    'webkit2gtk'
)
options=(!debug)
source=(
    "${_pkgname// /}-${pkgver}.deb::${_ghurl}/releases/download/V${pkgver}/${_pkgname// /}_${CARCH}.deb"
    "LICENSE-${pkgver}::https://raw.githubusercontent.com/tw93/Pake/V${pkgver}/LICENSE"
)
sha256sums=(
    'bf5ad181005beaadca2c90fa780b5b23e1d92ec67f14a8337c4aa5a3df2303b1'
    '462d57d8d84d48d7b40c9d2464f47be9898b3cb750690b1822587f653da06758'
)
build() {
    bsdtar -xf "${srcdir}/data."*
    sed "/^Name\[zh_CN\]/d;s/Name=.*/Name=${_pkgname}/;s/Office/AudioVideo;Audio/;s/com-pake-${_appname//-/}/${pkgname%-pake}/" -i "${srcdir}/usr/share/applications/com-pake-${_appname//-/}.desktop"
}
package() {
    install -Dm755 "${srcdir}/usr/bin/${_appname}" "${pkgdir}/usr/bin/${pkgname%-pake}"
    install -Dm644 "${srcdir}/usr/share/applications/com-pake-${_appname//-/}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-pake}.desktop"
    install -Dm644 "${srcdir}/usr/share/icons/hicolor/512x512/apps/${_appname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-pake}.png"
    install -Dm644 "${srcdir}/LICENSE-${pkgver}" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}