summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 656b9cefc1db908ae67588da6ba1c5cbbb39c88f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Maintainer: Yurii Kolesnykov <root@yurikoles.com>
# Co-maintainer: zxp19821005 <zxp19821005 at 163 dot com>
#
# Based on extra/electron by
# Caleb Maclennan <caleb@alerque.com>
# Bruno Pagani <archange@archlinux.org>

pkgver=33
pkgrel=1
pkgname=electron-bin
pkgdesc='Meta package providing the latest available stable Electron build'
pkgdesc+=' — binary'
arch=(any)
url='https://electronjs.org'
license=(MIT)
provides=("electron=${pkgver}")
conflicts=('electron')

package() {
	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}"
}