[packages/electron] new package

jajcus jajcus at pld-linux.org
Wed Dec 16 20:44:25 CET 2015


commit 4e4e360b270ff7fce37ec003737b9e5e16dea4b7
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Wed Dec 16 20:43:50 2015 +0100

    new package
    
    I give up with building this from source. :-(

 electron.spec | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 73 insertions(+)
---
diff --git a/electron.spec b/electron.spec
new file mode 100644
index 0000000..515fc5b
--- /dev/null
+++ b/electron.spec
@@ -0,0 +1,73 @@
+
+# TODO:
+#	- build from source (the process and deps look like hell)
+
+Summary:	Framework cross-platform desktop applications using JavaScript, HTML and CSS
+Name:		electron
+Version:	0.36.0
+Release:	0.1
+License:	MIT, BSD
+Group:		Applications
+#Source0:	https://github.com/atom/electron/archive/v%{version}/%{name}-%{version}.tar.gz
+## Source0-md5:	0c20e4676d7aef091521c9264d58939a
+Source1:	https://github.com/atom/electron/releases/download/v%{version}/%{name}-v%{version}-linux-ia32.zip
+# Source1-md5:	1272f2a7330341f86cd8be1cce14afc9
+Source2:	https://github.com/atom/electron/releases/download/v%{version}/%{name}-v%{version}-linux-x64.zip
+# Source2-md5:	1c77028a12330b4883fe93eea82c0b63
+URL:		https://github.com/atom/electron
+BuildRequires:	unzip
+ExclusiveArch:	%{ix86} %{x8664}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_noautoprovfiles	%{_libdir}/%{name}
+%define		_noautoreq		libnode.so libnotify.so
+
+%description
+The Electron framework lets you write cross-platform desktop
+applications using JavaScript, HTML and CSS. It is based on Node.js
+and Chromium and is used in the Atom editor.
+
+%prep
+%setup -qcT
+
+%ifarch %{ix86}
+unzip %{SOURCE1}
+%endif
+%ifarch %{x8664}
+unzip %{SOURCE2}
+%endif
+
+%build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+# make install repeatable
+rm -f debug*.list 2>/dev/null || :
+
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}}
+cp -a * $RPM_BUILD_ROOT%{_libdir}/%{name}
+
+rm $RPM_BUILD_ROOT%{_libdir}/%{name}/LICENSE*
+rm $RPM_BUILD_ROOT%{_libdir}/%{name}/libgcrypt*
+
+ln -sf %{_libdir}/%{name}/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE*
+%attr(755,root,root) %{_bindir}/%{name}
+%dir %{_libdir}/%{name}
+%{_libdir}/%{name}/locales
+%{_libdir}/%{name}/resources
+%attr(755,root,root) %{_libdir}/%{name}/electron
+%attr(755,root,root) %{_libdir}/%{name}/libnode.so
+%attr(755,root,root) %{_libdir}/%{name}/libnotify.so.4
+%{_libdir}/%{name}/content_shell.pak
+%{_libdir}/%{name}/icudtl.dat
+%{_libdir}/%{name}/natives_blob.bin
+%{_libdir}/%{name}/snapshot_blob.bin
+%{_libdir}/%{name}/version
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/electron.git/commitdiff/4e4e360b270ff7fce37ec003737b9e5e16dea4b7



More information about the pld-cvs-commit mailing list