summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cf7e93a2fdd44044ec19bed40106f23c05d1577e (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: Josip Ponjavic <josipponjavic at gmail dot com>
# Contributor: 

pkgname=qactus-git
pkgver=0.9.9.r330.g4c12cf7
pkgrel=1
pkgdesc='A Qt-based OBS notifier application'
arch=(x86_64)
url='https://github.com/javierllorente/qactus'
license=(GPL2 GPL3)
depends=(desktop-file-utils gtk-update-icon-cache qtkeychain)
makedepends=(git)
conflicts=(qactus)
provides=(qactus libqobs.so)
source=(git+https://github.com/javierllorente/qactus.git)
md5sums=(SKIP)

pkgver() {
  cd qactus
  version=$(grep 'VERSION =' src/defines.pri | awk '{print $3}')
  printf "%s.r%s.g%s" "$version" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  sed -i "s/lib64/lib/g" qactus/src/qobs/qobs.pro
}

build() {
  cd qactus
  qmake-qt5 PREFIX=/usr qactus.pro
  make
}

package() {
  make -C qactus INSTALL_ROOT="${pkgdir}" install
}