# Maintainer: Padraic Fanning < fanninpm AT miamioh DOT edu > # Contributor: Jake # Contributor: Ian MacKay _pkgname='github-desktop' pkgname="${_pkgname}-bin" pkgver=3.3.12_linux2 pkgrel=1 _pkgver="${pkgver//_/-}" _gitname="release-${_pkgver}" pkgdesc="GUI for managing Git and GitHub." arch=('x86_64' 'aarch64' 'armv7h') url="https://desktop.github.com" license=('MIT') depends=( 'curl' 'git' 'libsecret' 'libxss' 'nspr' 'nss' 'org.freedesktop.secrets' 'unzip' ) optdepends=('hub: CLI interface for GitHub.') provides=(${_pkgname}) conflicts=(${_pkgname}) source=(${_pkgname}.desktop) source_x86_64=(https://github.com/shiftkey/desktop/releases/download/${_gitname}/GitHubDesktop-linux-amd64-${_pkgver}.deb) source_aarch64=(https://github.com/shiftkey/desktop/releases/download/${_gitname}/GitHubDesktop-linux-arm64-${_pkgver}.deb) source_armv7h=(https://github.com/shiftkey/desktop/releases/download/${_gitname}/GitHubDesktop-linux-armhf-${_pkgver}.deb) sha256sums=('932e4c456e8c6db03d27172cf0daa37806bf025bb560d8b3d758c0997d1a618c') sha256sums_x86_64=('89f94a0fb34fb99be1c6f88d5bcc66b4239881d473d6b5e21b8db27160a35e26') sha256sums_aarch64=('0bd782bee7ff4f05d08988d9f3cc528b26aa8bcf9ca699ab2e24984f24029268') sha256sums_armv7h=('be9fca971be82e03bec2fb26049d280372ec3b787801e43301efb732462031b4') package() { tar xf data.tar.xz -C "${pkgdir}" install -d "${pkgdir}/opt/${_pkgname}" mv "${pkgdir}/usr/lib/github-desktop" "${pkgdir}/opt/" rm "${pkgdir}/usr/share/applications/github-desktop.desktop" install -Dm644 "${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop" ln -sf "/opt/$_pkgname/$_pkgname" "${pkgdir}/usr/bin/$_pkgname" }