summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ba78958101ff9f19c0d64b1498315ccc8f8990af (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: Chocobo1 <chocobo1 AT archlinux DOT net>
# Previous maintainer: The-Repo-Club <The-Repo-Club@github.com>

pkgname=qt6gtk2-git
pkgver=0.2.r2.g2a21a8a
pkgrel=1
pkgdesc="GTK+2.0 integration plugins for Qt6"
arch=('i686' 'x86_64')
url="https://github.com/trialuser02/qt6gtk2"
license=('GPL')
depends=('gcc-libs' 'gtk2' 'libx11' 'qt6-base')
makedepends=('git')
provides=("qt6gtk2=$pkgver")
conflicts=('qt6gtk2')
source=("git+https://github.com/trialuser02/qt6gtk2.git")
sha256sums=('SKIP')


pkgver() {
  cd "qt6gtk2"

  _tag=$(git tag -l --sort -v:refname | grep -E '^v?[0-9\.]+$' | head -n1)
  _rev=$(git rev-list --count $_tag..HEAD)
  _hash=$(git rev-parse --short HEAD)
  printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash" | sed 's/^v//'
}

build() {
  cd "qt6gtk2"

  qmake6
  make
}

package() {
  cd "qt6gtk2"

  make INSTALL_ROOT="$pkgdir" install
}