summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1ed4b87bb21d6388ffbd06fb352c1c74a690bec7 (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
pkgname=switcheroo-control
pkgver=2.5
pkgrel=3
pkgdesc="D-Bus service to check the availability of dual-GPU"
arch=(i686 x86_64)
url="https://gitlab.freedesktop.org/hadess/switcheroo-control"
license=(GPL3)
depends=(glib2 libgudev python)
makedepends=(git libxslt meson systemd)
# test dependencies need to be present for unittest_inspector at build time
makedepends+=(dbus-python python-dbusmock umockdev)
checkdepends=(dbus-python python-dbusmock umockdev)
_commit=992977918026e4eec352d38728b2e55f73fd02d2
source=("git+https://gitlab.freedesktop.org/hadess/switcheroo-control.git#commit=$_commit")
sha256sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe | sed 's/-/.r/; s/-/./'
}

build() {
  arch-meson $pkgname build
  meson compile -C build
}

#check() {
#  meson test -C build
#}

package() {
  DESTDIR="$pkgdir" meson install -C build
}

# vim: ts=2:sw=2:et