diff options
author | zxp19821005 | 2024-01-05 13:01:40 +0800 |
---|---|---|
committer | zxp19821005 | 2024-01-05 13:01:40 +0800 |
commit | d741d68613f1fd2ec64015c59304b8e1b1ba5cd2 (patch) | |
tree | 5484a04ea2da9587f5a9edd6433ff3b41b9673cd /PKGBUILD | |
download | aur-d741d68613f1fd2ec64015c59304b8e1b1ba5cd2.tar.gz |
update to 1.1.2
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..96c001b4dbee --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: zxp19821005 <zxp19821005 at 163 dot com> +pkgname=electron-calculator-bin +_pkgname="Electron Calculator" +pkgver=1.1.2 +_electronversion=22 +pkgrel=1 +pkgdesc="Simple electron calculator app" +arch=('x86_64') +url="https://github.com/Alex313031/electron-calculator" +license=('BSD') +provides=("${pkgname%-bin}") +conflicts=("${pkgname%-bin}") +depends=( + "electron${_electronversion}" + 'hicolor-icon-theme' +) +source=( + "${pkgname%-bin}-${pkgver}.deb::${url}/releases/download/${pkgver}/${pkgname%-bin}_${pkgver}_amd64.deb" + "LICENSE-${pkgver}::https://raw.githubusercontent.com/Alex313031/electron-calculator/${pkgver}/LICENSE" + "${pkgname%-bin}.sh" +) +sha256sums=('ac91977fb127e39364703456ce79c08c4d469f62676b762f0bc4d72afbe148eb' + '0971f64facd7071ec5e71edbac78a59937e0a82e1b1599ee45e5ce0e4735623e' + '5ce46265f0335b03568aa06f7b4c57c5f8ffade7a226489ea39796be91a511bf') +build() { + sed -e "s|@electronversion@|${_electronversion}|g" \ + -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}/${pkgname%-bin}\"|${pkgname%-bin}|g" -i "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" +} +package() { + install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}" + install -Dm644 "${srcdir}/opt/${_pkgname}/resources/app.asar" -t "${pkgdir}/usr/lib/${pkgname%-bin}" + install -Dm644 "${srcdir}/LICENSE-${pkgver}" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + for _icons in 16x16 24x24 32x32 48x48 64x64 96x96 128x128 256x256;do + install -Dm644 "${srcdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname%-bin}.png"\ + -t "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps" + done + install -Dm644 "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications" +}
\ No newline at end of file |