summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan MacKay2018-08-01 07:12:42 -0700
committerIan MacKay2018-08-01 07:12:42 -0700
commite817fb288d84adcfc4d6be9bf5c61c57c363b0ba (patch)
tree7138bf246128e202fe84fa59f6aa0625416727f9
downloadaur-e817fb288d84adcfc4d6be9bf5c61c57c363b0ba.tar.gz
Added files
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD28
-rw-r--r--github-desktop.desktop10
3 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..7a7383868535
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = github-desktop-bin
+ pkgdesc = GUI for managing Git and GitHub.
+ pkgver = 1.3.1
+ pkgrel = 1
+ url = https://desktop.github.com
+ arch = x86_64
+ license = MIT
+ depends = gnome-keyring
+ depends = git
+ depends = electron
+ depends = nodejs
+ depends = libcurl-compat
+ depends = libcurl-gnutls
+ optdepends = hub: CLI interface for GitHub.
+ source = https://github.com/shiftkey/desktop/releases/download/release-1.3.1/GitHubDesktop-linux-amd64-1.3.1.deb
+ source = github-desktop.desktop
+ sha256sums = 52837bbd87e42ff12bdc45bf9f05df5ac329e2f765554b776d8a8ca7b3d2a823
+ sha256sums = 52cb9a955b5981bf17fa8f3d529540bd75f1e38c0379c24aec4f84f8758125f1
+
+pkgname = github-desktop-bin
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..779d831da532
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Ian MacKay <immackay0@gmail.com>
+
+_pkgname='github-desktop'
+pkgname="${_pkgname}-bin"
+pkgver=1.3.1
+gitname="release-${pkgver//_/-}"
+pkgrel=1
+pkgdesc="GUI for managing Git and GitHub."
+arch=('x86_64')
+url="https://desktop.github.com"
+license=('MIT')
+depends=('gnome-keyring' 'git' 'electron' 'nodejs' 'libcurl-compat' 'libcurl-gnutls')
+optdepends=('hub: CLI interface for GitHub.')
+source=(
+ https://github.com/shiftkey/desktop/releases/download/release-1.3.1/GitHubDesktop-linux-amd64-1.3.1.deb
+ ${_pkgname}.desktop
+)
+sha256sums=(
+ 52837bbd87e42ff12bdc45bf9f05df5ac329e2f765554b776d8a8ca7b3d2a823
+ 52cb9a955b5981bf17fa8f3d529540bd75f1e38c0379c24aec4f84f8758125f1
+)
+package() {
+ tar xf data.tar.xz -C "${pkgdir}"
+ mv "${pkgdir}/opt/GitHubDesktop" "${pkgdir}/opt/${_pkgname}"
+ rm "${pkgdir}/usr/share/applications/desktop.desktop"
+ install -Dm644 "${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
+ printf '#!/bin/sh\n\nLD_PRELOAD=libcurl.so.3 /opt/github-desktop/desktop "$@"\n' | install -Dm755 /dev/stdin "${pkgdir}/usr/bin/github-desktop"
+}
diff --git a/github-desktop.desktop b/github-desktop.desktop
new file mode 100644
index 000000000000..f6a601dad61c
--- /dev/null
+++ b/github-desktop.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=GitHub Desktop
+Comment=Extend your GitHub workflow beyond your browser with GitHub Desktop
+Comment[es]=Trabaja con GitHub desde tu escritorio.
+Comment[eu]=GitHub-ekin lan egin zure ordenagailutik.
+Exec=/usr/bin/desktop %U
+Terminal=false
+Type=Application
+Icon=desktop
+Categories=Development;