summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d03584e31a7816a45dfde329ad957b0ca83b1fc1 (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
# Maintainer: Brody <archfan at brodix dot de>

_pkgname=oversteer
pkgname=${_pkgname}-git
pkgver=0.8.3.r7.ga418ffa
pkgrel=2
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: