blob: 2d689d23ef599565984ed7ac56025fef18c585f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: Padraic Fanning < fanninpm AT miamioh DOT edu >
# Contributor: Jake <aur@ja-ke.tech>
# Contributor: Ian MacKay <immackay0@gmail.com>
_pkgname='github-desktop'
pkgname="${_pkgname}-bin"
pkgver=2.9.6
pkgrel=1
_pkgver="${pkgver}-linux${pkgrel}"
_gitname="release-${_pkgver}"
pkgdesc="GUI for managing Git and GitHub."
arch=('x86_64')
url="https://desktop.github.com"
license=('MIT')
depends=('gnome-keyring' 'libsecret' 'git' 'curl' 'libxss' 'nss' 'nspr' 'unzip')
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=('60bdc673bea359f42f63dea90254b9241ec1c1239492536f191d2d3817501ee1'
'932e4c456e8c6db03d27172cf0daa37806bf025bb560d8b3d758c0997d1a618c')
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"
}
|