blob: f7d19d07a9e63bc3cdabba5b172102041b0999e5 (
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
60
61
62
|
# Maintainer: 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
pkgrel=1
pkgver=2.5.9
pkgdesc='Graphical Git client that helps you understand and manage your source history'
url='https://www.gitahead.com/'
arch=('x86_64')
license=('MIT')
depends=('desktop-file-utils' 'qt5-base')
makedepends=('cmake' 'ninja')
source=(
"git+https://github.com/gitahead/gitahead#tag=v${pkgver}"
"gitahead.desktop"
"gitahead.patch"
)
sha256sums=('SKIP'
'022132e59ea2a1ca43df8ca1e20a1f851fca6e61afe4899814619ca241df7f19'
'0c1320f33acb314b361ff69b4b5fbeda9dfd1a8c59528d27dc37ce111e42ab10')
prepare() {
cd "$srcdir/gitahead"
patch --forward --strip=1 --input="../gitahead.patch"
git submodule update --init --recursive
}
build() {
if [ ! -d "$srcdir/gitahead-build" ]; then
mkdir "$srcdir/gitahead-build"
fi
cd "$srcdir/gitahead-build"
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/usr/lib ../gitahead
ninja
}
package() {
cd "$srcdir/gitahead-build"
ninja package
mkdir -p "${pkgdir}/usr/"{share,bin}
cp -r "${srcdir}/gitahead-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"
install -D -m644 "${pkgdir}/usr/share/gitahead/Resources/GitAhead.iconset/icon_16x16.png" "${pkgdir}/usr/share/icons/hicolor/16x16/apps/gitahead.png"
install -D -m644 "${pkgdir}/usr/share/gitahead/Resources/GitAhead.iconset/icon_32x32.png" "${pkgdir}/usr/share/icons/hicolor/32x32/apps/gitahead.png"
install -D -m644 "${pkgdir}/usr/share/gitahead/Resources/GitAhead.iconset/icon_64x64.png" "${pkgdir}/usr/share/icons/hicolor/64x64/apps/gitahead.png"
install -D -m644 "${pkgdir}/usr/share/gitahead/Resources/GitAhead.iconset/icon_128x128.png" "${pkgdir}/usr/share/icons/hicolor/128x128/apps/gitahead.png"
install -D -m644 "${pkgdir}/usr/share/gitahead/Resources/GitAhead.iconset/icon_256x256.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/gitahead.png"
install -D -m644 "${pkgdir}/usr/share/gitahead/Resources/GitAhead.iconset/icon_512x512.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/gitahead.png"
install -D -m644 ${srcdir}/gitahead/LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -D -m644 "${srcdir}/gitahead.desktop" "${pkgdir}/usr/share/applications/gitahead.desktop"
}
|