summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 42a039254b8a39b3f63eca9330c4f6ca40b35d3e (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
38
39
40
41
42
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname=fxradio
_pkgname=FXRadio
pkgver=0.19.2
pkgrel=1
pkgdesc="Internet radio directory for desktop written in tornadofx"
arch=('any')
url="http://hudacek.online/fxradio"
_ghurl="https://github.com/Joseph5610/fxradio"
license=('AGPL-3.0-only')
conflicts=("${pkgname}")
depends=(
    'vlc'
    'java-runtime'
    'libxtst'
    'gtk3'
    'gtk2'
    'alsa-lib'
    'ffmpeg4.4'
)
makedepends=(
    'jdk-openjdk>=21'
    'java-openjfx'
    'git'
)
source=(
    "${pkgname}-${pkgver}.tar.gz::${_ghurl}/archive/refs/tags/v${pkgver}.tar.gz"
)
sha256sums=('29e00aa659fb12cdbb469acf844f460aa29eaa2f8dec6d398866bc3bf07cdd68')
build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    ./gradlew jfxNative
    sed "s|/opt/${_pkgname}/${_pkgname} %U|${pkgname} %U|g;s|/opt/${_pkgname}/${_pkgname}.png|${pkgname}|g;s|Utility|AudioVideo;|g" \
        -i "${srcdir}/opt/${pkgname}/${_pkgname}.desktop"
}
package() {
    install -Dm755 -d "${pkgdir}/"{opt/"${pkgname}",usr/bin}
    cp -r "${srcdir}/${pkgname}-${pkgver}/build/jfx/native/${_pkgname}/"* "${pkgdir}/opt/${pkgname}"
    ln -sf "/opt/${pkgname}/${_pkgname}" "${pkgdir}/usr/bin/${pkgname}"
    install -Dm644 "${pkgdir}/opt/${pkgname}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
    install -Dm644 "${pkgdir}/opt/${pkgname}/${_pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
}