diff options
author | zxp19821005 | 2023-12-13 18:52:24 +0800 |
---|---|---|
committer | zxp19821005 | 2023-12-13 18:52:24 +0800 |
commit | e1742f533f0696fa40403955ea1a194520aac27e (patch) | |
tree | 62a436f1e45971d1390626ebe70f05748f527fb0 /PKGBUILD | |
parent | 48ffeab2c7050370dd950d4a666bb22d2022f375 (diff) | |
download | aur-e1742f533f0696fa40403955ea1a194520aac27e.tar.gz |
fix errors
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -1,23 +1,27 @@ # Maintainer: zxp19821005 <zxp19821005 at 163 dot com> pkgname=raj-browser-bin pkgver=2.0.5 -pkgrel=3 +_electronversion=22 +pkgrel=4 pkgdesc="A UI and privacy focussed browser for the web from the web." arch=('x86_64') license=('custom') conflicts=("${pkgname%-bin}") url="https://github.com/Rajaniraiyn/raj-browser" depends=( - 'bash' - 'electron22' + "electron${_electronversion}" ) source=( "${pkgname%-bin}-${pkgver}.deb::${url}/releases/download/v${pkgver}/${pkgname%-bin}_${pkgver}_amd64.deb" "${pkgname%-bin}.sh" ) sha256sums=('b0ff6a0abff0fe3f8510aa5f12bae954eab07cb0441ee5971685d3335fa91b79' - 'ea63cc87484f5ca49318425a9ee2c5c9ac3920d5de6613634ad37a8c397cdf70') + '8915ca75d453698df81f7f3305cce6869f4261d754d90f0c3724b73c7b24ca84') build() { + sed -e "s|@electronversion@|${_electronversion}|" \ + -e "s|@appname@|${pkgname%-bin}|g" \ + -e "s|@appasar@|app.asar|g" \ + -i "${srcdir}/${pkgname%-bin}.sh" bsdtar -xf "${srcdir}/data.tar.xz" sed "s|/opt/${pkgname%-bin}/${pkgname%-bin} %U|${pkgname%-bin}|g;s|Utility|Network;Utility|g" \ -i "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" |