Package Details: gitahead 2.5.5-3

Git Clone URL: https://aur.archlinux.org/gitahead.git (read-only)
Package Base: gitahead
Description: Graphical Git client that helps you understand and manage your source history
Upstream URL: https://www.gitahead.com/
Keywords: git git-gui
Licenses: MIT
Submitter: KillWolfVlad
Maintainer: timschumi
Last Packager: timschumi
Votes: 6
Popularity: 0.895799
First Submitted: 2017-09-18 16:45
Last Updated: 2019-04-07 12:44

Latest Comments

1 2 Next › Last »

timschumi commented on 2019-04-16 18:28

@fenuks The LICENSE file in this repository is not for gitahead, but rather for the PKGBUILD itself. Don't ask me why.

fenuks commented on 2019-04-16 16:52

@timschumi Correct me if I'm wrong, but LICENSE file included in this package repository is not used (and in fact, incorrect, since gitahead is MIT-licensed, whereas bundled license file is for GPL), therefore could be removed?

timschumi commented on 2019-04-07 12:36

@shady.squirrel While it's nice to hear that the issue is resolved, the circumstances are still a bit weird. This package is always building from the same tag (unless the version is bumped), so it should still be the same package no matter when you built it (or at least it shouldn't contain any upstream fixes). Anyways, I'll upload the remaining patch and hopefully everything is resolved.

shady.squirrel commented on 2019-04-07 11:40

@timschumi it was an error or their side, I've rebuilt it again later yesterday (haven't seen your comment yet) and it worked okay (minus that 'Plugin documentation' error).

I've rebuilt with that new patch a hour ago, it looks fine so far, even Plugin documentation :)

timschumi commented on 2019-04-06 16:03

@shady.squirrel I made some more changes to the PKGBUILD, do you mind trying a build that has this patch applied? https://pastebin.com/raw/Hp5WK5hM

Main suspect seems to be the binary that was moved to /usr/bin/gitahead, which seems to make it upset (for example, the "Help > Plugin Documentation" menu doesn't work properly).

shady.squirrel commented on 2019-04-06 14:26

@timschumi no, just regular build, either from yay or manually via makepkg, same issue. Binary version works fine, so I'm starting to think it's an issue with their repo.

timschumi commented on 2019-04-06 14:20

@shady.squirrel No such issues here. Are you doing anything special to trigger this?

shady.squirrel commented on 2019-04-05 11:36

Latest build (2.5.5-2) requires Lua Lexer module which isn't found. App is crashing few seconds after starting, rendering it useless.

Crash log:

Lua Error: module 'lexer' not found:
        no field package.preload['lexer']
        no file '~/.cache/yay/gitahead/src/gitahead/dep/scintillua/scintillua-3.6.0/lexers/lexer.lua'
        no file '/usr/local/lib/lua/5.3/lexer.so'
        no file '/usr/local/lib/lua/5.3/loadall.so'
        no file './lexer.so'.

timschumi commented on 2019-03-31 10:05

@encelo I uploaded your proposed changes to the repository. Thanks for the work you did on this!

encelo commented on 2019-03-30 15:54

I have made some improvements to the package, such as:

  • Update package URL, description, license and dependencies
  • Link the binary to system-wide Qt5 and OpenSSL
  • Avoid compiling and installing OpenSSL
  • Install license and icons from sources
  • Delete unused files

Just delete all the files and have only those three:

PKGBUILD

# 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=2
pkgver=2.5.5
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'
            '2515f1aaf1797bfa98faddc500470e872e1384bc00da3354e63e721ca9b448ce'
            'ad160cf938475fae6ca2968a50a9d0974113dd804aba2612e9d03e776318a973')

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 -DCMAKE_INSTALL_PREFIX="${pkgdir}/usr" ../gitahead
  ninja
}

package() {
  cd "$srcdir/gitahead-build"

  ninja install

  rm -f "${pkgdir}"/usr/*.so.*
  rm -f "${pkgdir}/usr/bin/cmark"
  mv "${pkgdir}/usr/GitAhead" "${pkgdir}/usr/bin/gitahead"

  rm -rf "${pkgdir}/usr/include"
  rm -rf "${pkgdir}"/usr/share/{doc,man}
  rm -rf "${pkgdir}"/usr/{lib,lib64}

  mkdir -p "${pkgdir}/usr/lib/${pkgname}"
  mv "${pkgdir}/usr/Plugins" "${pkgdir}/usr/lib/${pkgname}/plugins"

  install -D -m644 "${pkgdir}/usr/Resources/GitAhead.iconset/icon_16x16.png" "${pkgdir}/usr/share/icons/hicolor/16x16/apps/gitahead.png"
  install -D -m644 "${pkgdir}/usr/Resources/GitAhead.iconset/icon_32x32.png" "${pkgdir}/usr/share/icons/hicolor/32x32/apps/gitahead.png"
  install -D -m644 "${pkgdir}/usr/Resources/GitAhead.iconset/icon_64x64.png" "${pkgdir}/usr/share/icons/hicolor/64x64/apps/gitahead.png"
  install -D -m644 "${pkgdir}/usr/Resources/GitAhead.iconset/icon_128x128.png" "${pkgdir}/usr/share/icons/hicolor/128x128/apps/gitahead.png"
  install -D -m644 "${pkgdir}/usr/Resources/GitAhead.iconset/icon_256x256.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/gitahead.png"
  install -D -m644 "${pkgdir}/usr/Resources/GitAhead.iconset/icon_512x512.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/gitahead.png"
  rm -rf "${pkgdir}/usr/Resources/GitAhead.iconset"

  mkdir -p "${pkgdir}/usr/share/${pkgname}"
  mv "${pkgdir}/usr/Resources" "${pkgdir}/usr/share/${pkgname}/resources"

  rm -f "${pkgdir}"/usr/{git-credential-libsecret,indexer,qt.conf,relauncher}

  install -D -m644 ../gitahead/LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -D -m644 "${srcdir}/gitahead.desktop" "${pkgdir}/usr/share/applications/gitahead.desktop"
}
gitahead.patch

diff -urN gitahead.orig/dep/CMakeLists.txt gitahead/dep/CMakeLists.txt
--- gitahead.orig/dep/CMakeLists.txt    2019-03-28 16:25:09.753615593 +0100
+++ gitahead/dep/CMakeLists.txt 2019-03-28 16:19:28.866933275 +0100
@@ -1,4 +1,3 @@
-add_subdirectory(openssl)
 add_subdirectory(libssh2)
 add_subdirectory(libgit2)

diff -urN gitahead.orig/pack/CMakeLists.txt gitahead/pack/CMakeLists.txt
--- gitahead.orig/pack/CMakeLists.txt   2019-03-28 16:06:48.996898436 +0100
+++ gitahead/pack/CMakeLists.txt    2019-03-28 16:23:57.830278953 +0100
@@ -147,7 +147,7 @@
 endif()

 # Install SSL libraries.
-if(NOT APPLE)
+if(FALSE)
   if(WIN32)
     if(CMAKE_CL_64)
       set(SSL_LIB_SUFFIX "-1_1-x64.dll")
gitahead.desktop

[Desktop Entry]
Name=GitAhead
Comment=Graphical Git client
Exec=gitahead
Icon=gitahead
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Development;Documentation;
MimeType=text/plain;