blob: cf1d9564c422eaa1c05f6fbbe23808063a32955a (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: Your Name <your@email.com>
# Contributor: PerfLite
pkgname=github-desktop-mod
pkgver=0.1.0
pkgrel=3
pkgdesc="Desktop GitHub repository manager — an alternative to GitHub Desktop for Linux"
arch=('any')
url="https://github.com/PerfLite/Github_DesktopMod"
license=('custom')
depends=(
'python'
'python-pywebview'
'python-requests'
'python-gitpython'
'python-watchdog'
'python-gobject'
'webkit2gtk-4.1'
'git'
)
makedepends=('git')
source=("${pkgname}::git+https://github.com/PerfLite/Github_DesktopMod")
sha256sums=('SKIP')
package() {
cd "${srcdir}/${pkgname}"
install -d "${pkgdir}/usr/share/${pkgname}"
cp -r app.py github_client.py requirements.txt ui "${pkgdir}/usr/share/${pkgname}/"
install -d "${pkgdir}/usr/bin"
cat > "${pkgdir}/usr/bin/${pkgname}" << EOF
#!/bin/bash
exec /usr/bin/python "/usr/share/${pkgname}/app.py"
EOF
chmod 755 "${pkgdir}/usr/bin/${pkgname}"
install -d "${pkgdir}/usr/share/applications"
cat > "${pkgdir}/usr/share/applications/${pkgname}.desktop" << EOF
[Desktop Entry]
Version=1.0
Type=Application
Name=GitHub Desktop Mod
Comment=Manage GitHub repositories
Exec=${pkgname}
Icon=/usr/share/${pkgname}/ui/github-64.png
Terminal=false
Categories=Development;Git;
StartupNotify=true
EOF
}
|