summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 77543b47d3f5def411da58ee0c5ca183b4356123 (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>

# Based on extra/electron by
# Caleb Maclennan <caleb@alerque.com>
# Bruno Pagani <archange@archlinux.org>

pkgver=31
pkgrel=1
_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)
provides=("${_pkgname}=${pkgver}")
conflicts=("${_pkgname}")

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}"
}