Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=00f49399550095f85ea39432f664a33e71e828b3

commit 00f49399550095f85ea39432f664a33e71e828b3
Author: crazy <[email protected]>
Date:   Wed Feb 22 01:05:02 2017 +0100

atom-1.14.3-1-x86_64
* Version bump
* fix how we sed the desktop file ( Exec= && Icon= was broken )
* install incons in /hicolor/ too..
* added an patch to remove restriction on nodejs7.x .. it will die telling you
* it won't build with node >=7.x .. however builds fine here.

diff --git a/source/xapps-extra/atom/FrugalBuild 
b/source/xapps-extra/atom/FrugalBuild
index cd571e3..1107ac5 100644
--- a/source/xapps-extra/atom/FrugalBuild
+++ b/source/xapps-extra/atom/FrugalBuild
@@ -3,33 +3,49 @@
# Contributor: darknekros <[email protected]>

pkgname=atom
-pkgver=1.13.1
+pkgver=1.14.3
pkgrel=1
pkgdesc="Atom is a hackable text editor for the 21st century from GitHub."
depends=('libgnome-keyring' 'nodejs>=6.3.1-2' 'gconf' 'python' 'git' 'alsa-lib' 
'libcups' \
'libnotify' 'libxtst' 'nss' 'gtk+2-libs')
makedepends=('ca-certificates' 'gtk+2' 'cups' 'x11-protos' 'libxkbfile')
groups=('xapps-extra')
-archs=('i686' 'x86_64')
-source=("${source[@]}" \
-       use_newer_apm.patch)
-sha1sums=('0cfd9761fbcd6cbacc19274a3837c6be945e765c' \
-          '79f610592d9150eeb24667c58b93008606c071b6')
+archs=('x86_64')
_F_github_tag_v=$pkgver
Finclude github
-
+source+=(remove-nodejs-7.x-restriction-since-works-fine-here.patch)
+sha1sums=('4b4ac0ffdcb12fa5cb8659ec67751fc361a604ae' \
+          '459955ef06561741c61d1bb7eacc449f17863245')
build() {
export CC=gcc CXX=g++ || Fdie
Fcd
Fpatchall
+
+       ## fix desktop file here since they change stuff on each release and 
the install
+       ## paths point to chroot !?! WTH this..
+       Fsed "Exec=.*" "Exec=/usr/bin/atom %F" resources/linux/atom.desktop.in
+       ## this only work bc we install the icons in hicolor too
+       Fsed "Icon=.*" "Icon=atom" resources/linux/atom.desktop.in
+
Fsed  "path.join('/usr', 'local')"  "\"$Fdestdir/usr\"" 
script/lib/install-application.js

Fexec cd script || Fdie
Fexec npm install || Fdie
Fexec ./build --build-dir "$Fsrcdir/atom-build" --install|| Fdie
+
+
+       ## hmm ? -- ok but we need this in hicolor too so themes work -- crazy 
--
+
Fcp "atom-$pkgver/resources/app-icons/stable/png/*.png" 
"usr/share/atom/resources"
-       Fsed "/var/tmp/fst/pkg/usr/share/atom/atom" "/usr/bin/atom" 
$Fdestdir/usr/share/applications/${pkgname}.desktop
-       Fsed "/var/tmp/fst/pkg/usr/share/atom/resources/app/resources/atom.png" 
"/usr/share/atom/resources/atom.png" 
$Fdestdir/usr/share/applications/${pkgname}.desktop
+
+       Fexec cd .. || Fdie
+
+       local i
+       for i in 16 24 32 48 64 128 256 512 1024
+       do
+                Finstallrel 644 "resources/app-icons/stable/png/${i}.png" 
"usr/share/icons/hicolor/${i}x${i}/apps/$pkgname.png"
+       done
+
}

# optimization OK
diff --git 
a/source/xapps-extra/atom/remove-nodejs-7.x-restriction-since-works-fine-here.patch
 
b/source/xapps-extra/atom/remove-nodejs-7.x-restriction-since-works-fine-here.patch
new file mode 100644
index 0000000..c5cfb6e
--- /dev/null
+++ 
b/source/xapps-extra/atom/remove-nodejs-7.x-restriction-since-works-fine-here.patch
@@ -0,0 +1,15 @@
+diff -Naur atom-1.14.3/script/lib/verify-machine-requirements.js 
atom-1.14.3-p/script/lib/verify-machine-requirements.js
+--- atom-1.14.3/script/lib/verify-machine-requirements.js      2017-02-17 
17:53:06.000000000 +0100
++++ atom-1.14.3-p/script/lib/verify-machine-requirements.js    2017-02-22 
00:26:38.032795147 +0100
+@@ -17,10 +17,8 @@
+ function verifyNode () {
+   const fullVersion = process.versions.node
+   const majorVersion = fullVersion.split('.')[0]
+-  if (majorVersion >= 4 && majorVersion < 7) {
++  if (majorVersion >= 4) {
+     console.log(`Node:\tv${fullVersion}`)
+-  } else if (majorVersion >= 7) {
+-    throw new Error(`Atom does not build properly on node v7+. node 
v${fullVersion} is installed.`)
+   } else {
+     throw new Error(`node v4+ is required to build Atom. node v${fullVersion} 
is installed.`)
+   }
diff --git a/source/xapps-extra/atom/use_newer_apm.patch 
b/source/xapps-extra/atom/use_newer_apm.patch
deleted file mode 100644
index 23cc077..0000000
--- a/source/xapps-extra/atom/use_newer_apm.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- atom-1.13.0/apm/package.json       2017-01-10 19:13:18.000000000 +0100
-+++ atom-1.13.0.new/apm/package.json   2017-01-24 16:30:24.000000000 +0100
-@@ -6,6 +6,6 @@
-     "url": "https://github.com/atom/atom.git";
-   },
-   "dependencies": {
--    "atom-package-manager": "1.14.1"
-+    "atom-package-manager": "1.15.2"
-   }
- }
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to