summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1555401fb11e1b3676928f8e443703f66f811069 (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
# Maintainer: xmengnet <my [AT] liyp.cc>
# Maintainer: xfangfang <xfangfang [AT] 126.com>
_pkgname=macast
pkgname=${_pkgname}-bin
pkgver=0.7
pkgrel=3
pkgdesc="DLNA Media Renderer"
arch=("x86_64")
conflicts=('macast')
provides=('macast')
url="https://github.com/xfangfang/Macast"
license=('GPL3')
depends=('python'
         'libxcrypt-compat'
         'mpv')


source=(
    "${_pkgname}::https://github.com/xfangfang/Macast/releases/download/v${pkgver}/Macast-Linux-v${pkgver}-amd64"
    "icon.png::https://github.com/xfangfang/Macast/raw/main/macast/assets/icon.png"
    "${_pkgname}.desktop"
)
sha256sums=('fa3f5101e9c2c8b5aad33ea3ebcbddd4c9a605fca024357197ae1c9398c72661'
            'c0736b51b9bb98859b83be68e246d60616f7f745b1a2254e2020b267852f4086'
            'a246d1ed58ece390f50a888d342ba1c8933a63bdd838c4199b3efdd40422aa0d')

package(){
    cd ${srcdir}
    install -d "${pkgdir}/usr/share/icons"
    install -Dm644 "icon.png" "${pkgdir}/usr/share/icons/Macast.png"
    install -d "${pkgdir}"/usr/bin
    install -Dm755 "${srcdir}/${_pkgname}" "${pkgdir}"/usr/bin
    install -d $pkgdir/usr/share/applications/
    cd $pkgdir/usr/share/applications/
    install -Dm644 "${srcdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
}