summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 24e694991d10a0b8adecaf7a05572ac0970b2710 (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
# Maintainer: LinArcx <linarcx@gmail.com>

pkgname='kindd-git'
pkgver=2.0.1.r0.g35eb576
pkgrel=1
pkgdesc=" A Kindful dd gui written in qt quick. (Github version)"
arch=('any')
url="https://github.com/LinArcX/Kindd"
license=('GPL-3.0')
depends=('polkit' 'qt5-quickcontrols2' 'qt5-quickcontrols' 'qt5-graphicaleffects' 'qt5-svg')
makedepends=('git' 'qt5-base')
source=("${pkgname}::git+https://github.com/LinArcX/Kindd.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 CONFIG+=debug CONFIG+=qml_debug
  make
}

package() {
  cd "${srcdir}/${pkgname}"
  install -Dm755 ./kindd ${pkgdir}/usr/bin/kindd
  install -Dm644 ./appconf/kindd.desktop ${pkgdir}/usr/share/applications/kindd.desktop
  install -Dm644 ./appconf/kindd.svg ${pkgdir}/usr/share/pixmaps/kindd.svg
  install -Dm644 ./LICENSE ${pkgdir}/usr/share/licenses/kindd/LICENSE
}