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

_pkgname=oversteer
pkgname=${_pkgname}-git
pkgver=0.8.2.r0.g4c7062e
pkgrel=1
pkgdesc='Graphical application to configure Logitech Wheels'
arch=(any)
url=https://github.com/berarma/${_pkgname}
license=(GPL3)
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#branch=v0.8.x)
b2sums=(SKIP)

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

prepare() {
  cd ${_pkgname}
  sed -i "s|version: '0.8.1',|version: '0.8.2',|g" meson.build
}

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: