-
Notifications
You must be signed in to change notification settings - Fork 8
/
PKGBUILD
115 lines (102 loc) · 2.85 KB
/
PKGBUILD
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# https://aur.archlinux.org/packages/gittyup
groups=('modified')
pkgname=gittyup
_app_id='com.github.Murmele.Gittyup'
pkgver=1.4.0
pkgrel=1
pkgdesc="A graphical Git client designed to help you understand and manage your source code history."
arch=('x86_64' 'aarch64')
url="https://murmele.github.io/Gittyup"
license=('MIT')
depends=(
'cmark'
'git'
'hicolor-icon-theme'
'hunspell'
'libgit2'
'libsecret'
'libssh2'
'libzip'
'lua'
'openssl'
'pcre'
'qt5-base'
)
makedepends=(
'cmake'
'git'
'libgnome-keyring'
'qt5-tools'
)
checkdepends=(
'appstream'
'desktop-file-utils'
)
optdepends=(
'git-lfs: git LFS support'
'libgnome-keyring: for GNOME Keyring for auth credentials'
)
source=("git+https://github.com/Murmele/Gittyup.git#tag=${pkgname}_v$pkgver"
'git+https://github.com/stinb/libgit2.git'
'git+https://github.com/libssh2/libssh2.git'
'git+https://github.com/openssl/openssl.git'
'git+https://github.com/git/git.git'
'git+https://github.com/commonmark/cmark.git'
'git+https://github.com/hunspell/hunspell.git'
'git+https://github.com/kuba--/zip.git'
'git+https://github.com/ScintillaOrg/lexilla.git'
'git+https://github.com/orbitalquark/scintillua.git')
sha256sums=('06e1d79a3a3062c2ab37ad3a0a8f67d74d0c19210a9defac2b5e9e68e70feb1f'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP')
prepare() {
cd Gittyup
# https://github.com/Murmele/Gittyup/issues/766
git cherry-pick -n d36eba172a01d541945d59427b4f643aaed55da0
git submodule init
for submodule in cmark git hunspell libssh2 openssl; do
git config "submodule.dep/${submodule}/${submodule}.update" none
done
for submodule in lexilla libgit2 scintillua zip; do
git config "submodule.dep/${submodule}/${submodule}.url" "$srcdir/${submodule}"
done
git -c protocol.file.allow=always submodule update
}
build() {
# Build fails with `-DUSE_SYSTEM_LIBGIT2='ON'`
cmake -B build -S Gittyup \
-DCMAKE_BUILD_TYPE='RelWithDebInfo' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DCMAKE_INSTALL_DATADIR='share' \
-DBUILD_SHARED_LIBS='OFF' \
-DUSE_SYSTEM_CMARK='ON' \
-DUSE_SYSTEM_GIT='ON' \
-DUSE_SYSTEM_HUNSPELL='ON' \
-DUSE_SYSTEM_LIBSSH2='ON' \
-DUSE_SYSTEM_LUA='ON' \
-DUSE_SYSTEM_OPENSSL='ON' \
-DUSE_SYSTEM_QT='ON' \
-DLUA_MODULES_PATH='/usr/lib/lua/5.4' \
-DGENERATE_APPDATA='ON' \
-DENABLE_UPDATE_OVER_GUI='OFF' \
-Wno-dev
cmake --build build
}
check() {
cd Gittyup
appstreamcli validate --no-net "rsrc/linux/${_app_id}.appdata.xml.in" || :
desktop-file-validate "rsrc/linux/${_app_id}.desktop"
}
package() {
DESTDIR="$pkgdir" cmake --install build
cd "$pkgdir/usr"
rm -rf include lib
mv bin/{indexer,relauncher} share/Gittyup
}