blob: 4b8643a8e15e2fe1fbf896b312eca5d05afc90b5 (
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
|
# Maintainer : konez2k <konez at protonmail dot com>
_pkgname=gittyup
pkgname="${_pkgname}-appimage"
pkgver=1.4.0
pkgrel=1
pkgdesc="Graphical Git client (GitAhead fork)"
arch=('x86_64')
url="https://github.com/Murmele/Gittyup"
license=('MIT')
depends=('zlib' 'fuse2')
options=('!strip' '!debug')
_appimage="${pkgname}-${pkgver}.AppImage"
source_x86_64=("${_appimage}::https://github.com/Murmele/Gittyup/releases/download/gittyup_v${pkgver}/Gittyup-${pkgver}-${CARCH}.AppImage")
noextract=("${_appimage}")
sha256sums_x86_64=('93da06484a571e60857caa901dae07f3c4dae096a89aad87006a1be7ac307f4a')
prepare() {
chmod +x "${_appimage}"
./"${_appimage}" --appimage-extract
}
build() {
# Adjust .desktop so it will work outside of AppImage container
sed -i -E "s|Exec=AppRun|Exec=env DESKTOPINTEGRATION=false /usr/bin/${_pkgname} %u|" \
"squashfs-root/${_pkgname}.desktop"
# Fix permissions; .AppImage permissions are 700 for all directories
chmod -R a-x+rX squashfs-root/usr
}
package() {
# AppImage
install -Dm755 "./${_appimage}" "${pkgdir}/opt/${pkgname}/${pkgname}.AppImage"
# Desktop file
install -Dm644 "${srcdir}/squashfs-root/${_pkgname}.desktop" \
"${pkgdir}/usr/share/applications/${_pkgname}.desktop"
# Icon
install -dm755 "${pkgdir}/usr/share/"
cp -a "${srcdir}/squashfs-root/usr/share/icons" "${pkgdir}/usr/share/"
mkdir -p "${pkgdir}/usr/share/pixmaps/"
install -Dm644 "${srcdir}/squashfs-root/usr/share/icons/hicolor/512x512/apps/$_pkgname.png" "${pkgdir}/usr/share/pixmaps"
# Symlink executable
install -dm755 "${pkgdir}/usr/bin"
ln -s "/opt/${pkgname}/${pkgname}.AppImage" "${pkgdir}/usr/bin/${_pkgname}"
}
|