diff options
author | Yurii Kolesnykov | 2024-06-16 16:29:07 +0300 |
---|---|---|
committer | Yurii Kolesnykov | 2024-06-16 16:51:15 +0300 |
commit | 45b33617fc8cd2c17a18b33e9e127357b9e76a64 (patch) | |
tree | a2221c4f4c6ab5824a6adf2e6ed97d209d67170e | |
parent | 6537a3230aeb24f4e90ba6c1491513ec3d48e2f2 (diff) | |
download | aur-45b33617fc8cd2c17a18b33e9e127357b9e76a64.tar.gz |
31
Signed-off-by: Yurii Kolesnykov <root@yurikoles.com>
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 21 |
2 files changed, 19 insertions, 10 deletions
@@ -1,10 +1,12 @@ pkgbase = electron-bin - pkgdesc = Meta package, always depends on the latest stable Electron binary build - pkgver = 30 + pkgdesc = Meta package providing the latest available stable Electron build — binary + pkgver = 31 pkgrel = 1 url = https://electronjs.org arch = any license = MIT - depends = electron30-bin + provides = electron=31 + conflicts = electron pkgname = electron-bin + depends = electron31-bin @@ -1,19 +1,26 @@ # Maintainer: Yurii Kolesnykov <root@yurikoles.com> # Based on extra/electron by -# Bruno Pagani <archange@archlinux.org> # Caleb Maclennan <caleb@alerque.com> +# Bruno Pagani <archange@archlinux.org> -pkgver=30 +pkgver=31 pkgrel=1 -pkgname=electron-bin -pkgdesc='Meta package, always depends on the latest stable Electron binary build' +_pkgname=electron +pkgname="${_pkgname}-bin" +pkgdesc='Meta package providing the latest available stable Electron build' +pkgdesc+=' — binary' arch=(any) url='https://electronjs.org' license=(MIT) -depends=("electron${pkgver}-bin") +provides=("${_pkgname}=${pkgver}") +conflicts=("${_pkgname}") package() { - mkdir -p "${pkgdir}/usr/bin" - ln -sf "electron${pkgver}" "${pkgdir}/usr/bin/${pkgname}" + depends=("electron${pkgver}-bin") + mkdir -p "${pkgdir}/usr/bin" "${pkgdir}/usr/lib" + + local _electron_major="electron${pkgver}" + ln -sf "${_electron_major}" "${pkgdir}/usr/bin/${pkgname}" + ln -sf "${_electron_major}" "${pkgdir}/usr/lib/${pkgname}" } |