diff options
author | Matthew McGinn | 2019-07-30 14:40:31 +0100 |
---|---|---|
committer | Matthew McGinn | 2019-07-30 14:41:15 +0100 |
commit | 02984017d3b51327b295272e01148d6ec5ed55a2 (patch) | |
tree | 6eb45adadb772b5846771856dfa17491b977f184 | |
download | aur-02984017d3b51327b295272e01148d6ec5ed55a2.tar.gz |
initial commit
Signed-off-by: Matthew McGinn <mamcgi@gmail.com>
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 29 |
3 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..885b8f29a8b4 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = electron3-bin + pkgdesc = Build cross-platform desktop apps with JavaScript, HTML, and CSS + pkgver = 3.1.12 + pkgrel = 1 + url = https://electronjs.org/ + arch = x86_64 + license = MIT + provides = electron3 + conflicts = electron3 + source = https://github.com/electron/electron/releases/download/v3.1.12/chromedriver-v3.1.12-linux-x64.zip + source = https://github.com/electron/electron/releases/download/v3.1.12/electron-v3.1.12-linux-x64.zip + sha256sums = 8256f20cb30d9f1c545c8228d7b59622743e270016e6541c51e3dbebb71ef790 + sha256sums = b3ad887ce96e4eba18c7736b4e504f71785d88e108a5f7ec0ac20afb9c106b88 + +pkgname = electron3-bin + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..9954978f6c02 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +*.tar.gz +*.tar.xz +*.zip +electron3-bin/* +pkg +src diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..19e642088cae --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Matthew McGinn <mamcgi@gmail.com> + +pkgname="electron3-bin" +_pkgname="electron3" +pkgver="3.1.12" +pkgrel="1" +pkgdesc="Build cross-platform desktop apps with JavaScript, HTML, and CSS" +arch=("x86_64") +url="https://electronjs.org/" +_github_url="https://github.com/electron/electron" +license=("MIT") +provides=("electron3") +conflicts=("electron3") +source=("${_github_url}/releases/download/v${pkgver}/chromedriver-v${pkgver}-linux-x64.zip" +"${_github_url}/releases/download/v${pkgver}/electron-v${pkgver}-linux-x64.zip") +sha256sums=("8256f20cb30d9f1c545c8228d7b59622743e270016e6541c51e3dbebb71ef790" + "b3ad887ce96e4eba18c7736b4e504f71785d88e108a5f7ec0ac20afb9c106b88") + +package() { + cd "${srcdir}" + mkdir -pm755 ${pkgdir}/usr/bin + mkdir -pm755 ${pkgdir}/usr/lib/${pkgname}/{locales,resources} + find . -maxdepth 1 -type f ! -name "*zip" -exec cp -t "${pkgdir}/usr/lib/${pkgname}/." {} + + cp -R locales resources "${pkgdir}/usr/lib/${pkgname}/" + cd "${pkgdir}/usr/bin" + ln -nfs "../lib/${pkgname}/electron" "${_pkgname}" +} + +# vim:set ts=2 sw=2 et: |