summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f356122f5769082a9f934225e45df54ab5e370f9 (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
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: Alejandro Valdes <alejandrovaldes@live.com>
# Contributor: liberodark

pkgname=guitar
pkgver=1.2.0
pkgrel=2
pkgdesc="Open source Git GUI Client"
arch=(x86_64 i686 armv7h aarch64)
url="https://soramimi.github.io/Guitar/"
license=(GPL-2.0-only)
depends=(qt5-svg git file)
makedepends=(cmake qt5-tools)
source=("$pkgname-$pkgver.tar.gz::https://github.com/soramimi/Guitar/archive/v${pkgver}.tar.gz")
sha256sums=('e1f4b2571a44dc763b62957f7633e92baabcaf0fb3f2d4cc7e0d68ec78275ff5')

build() {
  cmake -B build -S "Guitar-${pkgver}" -Wno-dev \
    -DCMAKE_BUILD_TYPE=None \

  cmake --build build
}

package() {
  install -Dm755 "build/Guitar" "$pkgdir/usr/bin/$pkgname"

  cd "Guitar-${pkgver}/LinuxDesktop"
  install -D "Guitar.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/${pkgname}.svg"
  install -D "guitar.desktop" "$pkgdir/usr/share/applications/${pkgname}.desktop"
}