summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStarterX42020-11-22 05:01:37 +0100
committerStarterX42020-11-22 05:01:37 +0100
commitf70d95a5652b0b15648949a26ea58996229a7937 (patch)
treecc20014052edc30a4cf0a8a7ac4c53754f723a65
downloadaur-geforcenow-nativefier.tar.gz
first release
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD52
-rw-r--r--geforcenow-nativefier.desktop11
-rw-r--r--geforcenow-nativefier.pngbin0 -> 7629 bytes
4 files changed, 85 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8708ce8d6d7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = geforcenow-nativefier
+ pkgdesc = GeForce NOW desktop app built with nativefier (electron)
+ pkgver = 20201122
+ pkgrel = 1
+ url = https://play.geforcenow.com/mall/
+ arch = i686
+ arch = x86_64
+ license = custom
+ makedepends = imagemagick
+ makedepends = nodejs-nativefier
+ makedepends = unzip
+ depends = gtk3
+ depends = libxss
+ depends = nss
+ optdepends = libindicator-gtk3
+ source = geforcenow-nativefier.png
+ source = geforcenow-nativefier.desktop
+ md5sums = 52b3c84a5b609b61acab623cc52007b4
+ md5sums = f3715ff82faf28c158fc7f3bf8348217
+
+pkgname = geforcenow-nativefier
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..88aaa2d0e10
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,52 @@
+# Maintainer: Dominik Adrian Grzywak <starterx4 at gmail dot com>
+
+pkgname=geforcenow-nativefier
+pkgver=20201122
+pkgrel=1
+pkgdesc="GeForce NOW desktop app built with nativefier (electron)"
+arch=("i686" "x86_64")
+url="https://play.geforcenow.com/mall/"
+license=("custom")
+depends=("gtk3" "libxss" "nss")
+optdepends=("libindicator-gtk3")
+makedepends=("imagemagick" "nodejs-nativefier" "unzip")
+source=(
+ "${pkgname}.png"
+ "${pkgname}.desktop"
+)
+md5sums=('52b3c84a5b609b61acab623cc52007b4'
+ 'f3715ff82faf28c158fc7f3bf8348217')
+
+build() {
+ cd "${srcdir}"
+
+ nativefier \
+ --name "GeForce NOW" \
+ --icon "${pkgname}.png" \
+ --maximize \
+ --browserwindow-options '{ "webPreferences": { "nativeWindowOpen": true } }' \
+ --internal-urls ".*?" \
+ --verbose \
+ --honest \
+ --single-instance \
+ --ignore-gpu-blacklist \
+ "${url}"
+}
+
+package() {
+ install -dm755 "${pkgdir}/"{opt,usr/{bin,share/{applications,licenses/${pkgname}}}}
+
+ _folder=$(ls -l "${srcdir}" | grep "[Gg]e[Ff]orce[Nn][Oo][Ww]-linux-" | awk '{print $9}')
+ _binary=$(ls -l "${srcdir}/${_folder}" | grep "[Gg]e[Ff]orce[Nn][Oo][Ww]" | awk '{print $9}')
+
+ cp -rL "${srcdir}/${_folder}" "${pkgdir}/opt/${pkgname}"
+ ln -s "/opt/${pkgname}/${_binary}" "${pkgdir}/usr/bin/${pkgname}"
+ install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+ install -Dm644 "${pkgdir}/opt/${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ for _size in "192x192" "128x128" "96x96" "64x64" "48x48" "32x32" "24x24" "22x22" "20x20" "16x16" "8x8"
+ do
+ install -dm755 "${pkgdir}/usr/share/icons/hicolor/${_size}/apps"
+ convert "${srcdir}/${pkgname}.png" -strip -resize "${_size}" "${pkgdir}/usr/share/icons/hicolor/${_size}/apps/${pkgname}.png"
+ done
+}
+
diff --git a/geforcenow-nativefier.desktop b/geforcenow-nativefier.desktop
new file mode 100644
index 00000000000..218e9469f7c
--- /dev/null
+++ b/geforcenow-nativefier.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=GeForce NOW
+Comment=GeForce NOW for desktop built with nativefier (electron)
+Exec=geforcenow-nativefier
+Icon=geforcenow-nativefier
+Encoding=UTF-8
+StartupWMClass=geforcenow-nativefier
+Terminal=false
+StartupNotify=true
+Type=Application
+Categories=Network;Game;Application;
diff --git a/geforcenow-nativefier.png b/geforcenow-nativefier.png
new file mode 100644
index 00000000000..04cdc0ab6b2
--- /dev/null
+++ b/geforcenow-nativefier.png
Binary files differ