summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ee4d98cb85d975128dae734a5844d317b306c314 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
# Maintainer: Brody <archfan at brodix dot de>

pkgname=oversteer-git
_pkgname=${pkgname%-git}
pkgver=0.8.3.r26.gcf68252
pkgrel=1
pkgdesc='Graphical application to configure Logitech Wheels'
arch=(any)
url=https://github.com/berarma/${_pkgname}
license=(GPL-3.0-or-later)
depends=(
  appstream-glib
  desktop-file-utils
  gettext
  python
  python-cairo
  python-evdev
  python-gobject
  python-matplotlib
  python-pyudev
  python-pyxdg
  python-scipy
)
makedepends=(
  git
  meson
)
provides=(${_pkgname})
conflicts=(${_pkgname})
source=(${_pkgname}::git+${url}.git)
b2sums=(SKIP)

pkgver() {
  cd ${_pkgname}

  git describe --tags --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd ${_pkgname}

  meson build --prefix=/usr
  ninja -C build
}

package() {
  cd ${_pkgname}

  DESTDIR="${pkgdir}" ninja -C build install
}

# vim: ts=2 sw=2 et: