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

pkgname=qactus-git
pkgver=1.0.0.r4.g333bcf8
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=(cmake git)
conflicts=(qactus)
provides=(qactus libqobs.so)
source=("${pkgname%-*}::git+https://github.com/javierllorente/qactus.git")
md5sums=(SKIP)

pkgver() {
  cd qactus
  git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g;s/v//g'
}

build() {
  cd qactus
  cmake . \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib
  make
}

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