diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -3,7 +3,7 @@ pkgname=tomato-radio-automation _pkgname="${pkgname}" pkgver=0.4.0 -pkgrel=2 +pkgrel=3 pkgdesc='Tomato Radio Automation desktop client. Dead simple radio ads.' arch=('x86_64' 'aarch64') url='https://dtcooper.github.io/tomato/' @@ -14,18 +14,18 @@ source=( "tomato-radio-automation-${pkgver}.tar.gz::https://github.com/dtcooper/tomato/archive/refs/tags/v${pkgver}.tar.gz" ) sha256sums=('bd49d00390a0579172b107eb4de076fbc5d890157aa37c8c717401a69700abd1') -_clientdir="tomato-${pkgver}/client" +_repodir="tomato-${pkgver}" # Source below the exact same as tomato-radio-automation-git prepare() { - cd "${_clientdir}" + cd "${_repodir}/client" npm install cp "scripts/debian/tomato.desktop" "${srcdir}/${_pkgname}.desktop" sed "s/^\(Exec\|Icon\)=tomato/\1=${_pkgname}/" scripts/debian/tomato.desktop > "${srcdir}/${_pkgname}.desktop" } build() { - cd "${_clientdir}" + cd "${_repodir}/client" TOMATO_VERSION="${pkgver} (arch)" npm run package mv -v "out/Tomato-linux-"* "out/${_pkgname}" chmod 0755 "out/${_pkgname}" @@ -33,9 +33,10 @@ build() { package() { install -dm755 "${pkgdir}/opt/" - cp -r "${srcdir}/${_clientdir}/out/${_pkgname}" "${pkgdir}/opt/" + cp -r "${srcdir}/${_repodir}/client/out/${_pkgname}" "${pkgdir}/opt/" install -Dm755 "${srcdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop" - install -Dm644 "${srcdir}/${_clientdir}/assets/icons/tomato.png" "${pkgdir}/usr/share/pixmaps/${_pkgname}.png" + install -Dm644 "${srcdir}/${_repodir}/client/assets/icons/tomato.png" "${pkgdir}/usr/share/pixmaps/${_pkgname}.png" + install -Dm644 "${srcdir}/${_repodir}/LICENSE" "${pkgdir}/usr/share/licenses/tomato-radio-automation/LICENSE" install -dm755 "${pkgdir}/usr/bin/" ln -s "/opt/${_pkgname}/tomato" "${pkgdir}/usr/bin/${_pkgname}" } |