summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2b899d39dcf7cd06736a66a002705fe942caf0f2 (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
# Maintainer: detiam <dehe_tian@outlook.com>
# Contributor: Filipe LaĆ­ns (FFY00) <lains@archlinux.org>

pkgname=piper-zhfix
_pkgname=piper
pkgver=0.7
pkgrel=2
pkgdesc='GTK application to configure gaming mice (zhfix fork)'
arch=('any')
url='https://github.com/detiam/piper-zhfix'
license=('GPL')
depends=('python' 'python-gobject' 'libratbag' 'python-evdev' 'python-lxml' 'python-cairo')
makedepends=('git' 'meson' 'flake8' 'appstream')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+$url#branch=zhfix")
sha512sums=('SKIP')

prepare() {
  cd $pkgname

  # Remove install script
  # This is handled by pacman hooks
  sed -i "/meson.add_install_script('meson_install.sh')/d" meson.build
}

build() {
  mkdir $pkgname/build
  cd $pkgname/build

  arch-meson ..

  ninja
}

package() {
  cd $pkgname/build

  DESTDIR="$pkgdir" ninja install
}