blob: 5424c83c88624f0b9a17a2279bd64da64d977b7c (
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
52
53
54
55
56
57
58
59
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Contributor: Tim Schumacher <timschumi@gmx.de>
# Contributor: KillWolfVlad <github.com/KillWolfVlad>
# Contributor: WaveHack <email@wavehack.net>
# Contributor: Whovian9369 <Whovian9369@gmail.com>
# Contributor: Angelo Theodorou <encelo@gmail.com>
pkgname=gitahead
pkgver=2.7.0
pkgrel=1
pkgdesc='Understand your Git history!'
url='https://www.gitahead.com/'
arch=(x86_64)
license=(MIT)
depends=(desktop-file-utils
git
org.freedesktop.secrets
qt6-5compat
qt6-base)
makedepends=(cmake
python
qt6-tools
qt6-translations)
source=("git+https://github.com/$pkgname/$pkgname#tag=v$pkgver"
"$pkgname.desktop"
"$pkgname.patch")
sha256sums=('SKIP'
'254b4e970a942c6ac94df177e54a6169fe7e5f5c5d0d92b6f0c0f03b7b7b2fb0'
'ab04ba1f49fbddc3a6df37319c744638f49a4114b688d2d71f0067c207487ff2')
prepare() {
cd "$pkgname"
patch -p1 < "../gitahead.patch"
git submodule update --init --recursive
}
build() {
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH=/usr/lib \
-B build \
-S "$pkgname"
cmake --build build
}
package() {
cd "$pkgname"
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE.md
install -Dm0644 -t "$pkgdir/usr/share/applications/" "../$pkgname.desktop"
cmake --build ../build --target package
mkdir -p "$pkgdir/usr/"{share,bin}
cp -r "../build/_CPack_Packages/Linux/STGZ/GitAhead-$pkgver" "$pkgdir/usr/share/gitahead"
rm -rf "$pkgdir/usr/share/gitahead/"*.so.*
ln -s "/usr/share/gitahead/GitAhead" "$pkgdir/usr/bin/gitahead"
cd "$pkgdir/usr/share"
for s in 16x16 32x32 64x64 128x128 256x256 512x512; do
install -Dm0644 "gitahead/Resources/GitAhead.iconset/icon_$s.png" "icons/hicolor/$s/apps/$pkgname.png"
done
}
|