diff options
author | zxp19821005 | 2023-12-14 16:29:12 +0800 |
---|---|---|
committer | zxp19821005 | 2023-12-14 16:29:12 +0800 |
commit | 4bdd1dd45d097175dd87a24b61279d41b832175f (patch) | |
tree | 936cef6fcfda3002388fff31d47356c39184177d /PKGBUILD | |
parent | 494d016db192eda354f9c5c752e5c0a0cad0988b (diff) | |
download | aur-4bdd1dd45d097175dd87a24b61279d41b832175f.tar.gz |
fix errors
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -2,7 +2,8 @@ pkgname=shiba-bin _pkgname=Shiba pkgver=1.2.1 -pkgrel=5 +_electronversion=5 +pkgrel=6 pkgdesc="Rich markdown live preview app with linter.This application is being re-written from scratch to V2,using Rust, TypeScript and React" arch=('x86_64') url="https://github.com/rhysd/Shiba" @@ -10,26 +11,30 @@ license=('MIT') provides=("${pkgname%-bin}=${pkgver}") conflicts=("${pkgname%-bin}") depends=( - 'electron5' + "electron${_electronversion}" ) makedepends=( 'gendesk' ) source=( "${pkgname%-bin}-${pkgver}.zip::${url}/releases/download/v${pkgver}/${_pkgname}-linux-x64.zip" - "${pkgname%-bin}.png::https://raw.githubusercontent.com/rhysd/Shiba/master/build/images/shibainu.png" + "${pkgname%-bin}-${pkgver}.png::https://raw.githubusercontent.com/rhysd/Shiba/master/build/images/shibainu.png" "${pkgname%-bin}.sh" ) sha256sums=('bce114feb8b6fccb6db4c933ed48d5fd0040c04ed30e16441b188320963d6fb7' 'e94cd67aa4ba4e9ba4a90c939e3597caed218434e7d4c1e354495508bc1eae38' - '96b4b3b7a7094e16dfc60473f1991a5d47d78b465c26be1b0a3f6aa8c43fa9c1') + '8915ca75d453698df81f7f3305cce6869f4261d754d90f0c3724b73c7b24ca84') build() { + sed -e "s|@electronversion@|${_electronversion}|" \ + -e "s|@appname@|${pkgname%-bin}|g" \ + -e "s|@appasar@|app.asar|g" \ + -i "${srcdir}/${pkgname%-bin}.sh" gendesk -q -f -n --categories "Utility" --name "${_pkgname}" --exec "${pkgname%-bin}" } package() { install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}" - install -Dm644 "${srcdir}/Shiba-linux-x64/resources/app.asar" -t "${pkgdir}/usr/lib/${pkgname%-bin}" - install -Dm644 "${srcdir}/Shiba-linux-x64/LICENSE"* -t "${pkgdir}/usr/share/licenses/${pkgname}" - install -Dm644 "${srcdir}/${pkgname%-bin}.png" -t "${pkgdir}/usr/share/pixmaps" + install -Dm644 "${srcdir}/${_pkgname}-linux-x64/resources/app.asar" -t "${pkgdir}/usr/lib/${pkgname%-bin}" + install -Dm644 "${srcdir}/${_pkgname}-linux-x64/LICENSE"* -t "${pkgdir}/usr/share/licenses/${pkgname}" + install -Dm644 "${srcdir}/${pkgname%-bin}-${pkgver}.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-bin}.png" install -Dm644 "${srcdir}/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications" }
\ No newline at end of file |