summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9c1d2a7a637c5df11c367e94a21922f2d1b67e24 (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
# Maintainer: Hossein Heydari <arch7nelliel@gmail.com>

pkgname="traqtor-git"
pkgver=r39.7c9798b
pkgrel=1
pkgdesc="Graphical settings app for tractor in Qt"
license=('GPL3')
arch=('any')
url="https://gitlab.com/tractor-team/qtractor"
depends=( 'qt5-quickcontrols2' 'pkgconf')
source=("${pkgname}::git+https://gitlab.com/tractor-team/qtractor.git")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${pkgname}"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

build() {
  cd "${srcdir}/${pkgname}"
  qmake
  make
}

package() {

  cd "${srcdir}/${pkgname}"
  install -Dm755 ./traqtor ${pkgdir}/usr/bin/traqtor

 #  install -Dm644 ./carburetor-master/carburetor ${pkgdir}/usr/bin/carburetor
 #  install -Dm644 ./carburetor-master/man/carburetor.1 ${pkgdir}/usr/share/man/carburetor.1
 #  install -Dm644 ./carburetor-master/desktop/carburetor.desktop ${pkgdir}/usr/share/applications/carburetor.desktop
 #  install -Dm644 ./carburetor-master/desktop/carburetor.svg ${pkgdir}/usr/share/icons/hicolor/scalable/apps/carburetor.svg

  chmod +x ${pkgdir}/usr/bin/traqtor
}