# Maintainer: Ian MacKay _pkgname='github-desktop' pkgname="${_pkgname}-bin" pkgver=1.6.6 _pkgver="${pkgver}-linux2" gitname="release-${_pkgver}" pkgrel=2 pkgdesc="GUI for managing Git and GitHub." arch=('x86_64') url="https://desktop.github.com" license=('MIT') depends=('gnome-keyring' 'libsecret' 'git' 'curl' 'libxss' 'gconf' 'nss' 'nspr') optdepends=('hub: CLI interface for GitHub.') provides=(${_pkgname}) conflicts=(${_pkgname}) source=( https://github.com/shiftkey/desktop/releases/download/${gitname}/GitHubDesktop-linux-${_pkgver}.deb ${_pkgname}.desktop ) sha256sums=( 3e359658578e1b6f385de20f62d1139bd27447db58b380d721a1c33b4e3f671e 2758e15659f5770ae2ac948250372135029e7ac2d4b6bf431a112dfdbcc681d1 ) package() { tar xf data.tar.xz -C "${pkgdir}" mv "${pkgdir}/opt/GitHub Desktop" "${pkgdir}/opt/${_pkgname}" rm "${pkgdir}/usr/share/applications/github-desktop.desktop" install -Dm644 "${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop" printf "#!/bin/sh\n\n/opt/${_pkgname}/github-desktop \"\$@\"\n" | install -Dm755 /dev/stdin "${pkgdir}/usr/bin/${_pkgname}" }