summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a1ea5d3f978c24f05a05e19ea5c441afb883b7d1 (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
# Maintainer: tildearrow <acc12345acc at gmail dot com>
# yes, I'm aware of the reference to $srcdir issue
pkgname=input-modifier
pkgver=1.3.1
pkgrel=1
pkgdesc="uinput based key bindings and macros tool"
arch=('i686' 'x86_64')
url="https://github.com/tildearrow/input-modifier"
license=('GPL')
depends=('udev')
makedepends=('cmake')
source=("https://github.com/tildearrow/input-modifier/archive/v$pkgver.tar.gz")
sha256sums=('9f0f35b15af6f171ffa7ab23909c4b6fcc1acf92f83ef070d9b02123f34ae419')
install=imod.install

build() {
  cd "$pkgname-$pkgver"
  if [ -e build ]
    then rm -rf build
  fi
  mkdir build && cd build
  cmake -DCMAKE_INSTALL_PREFIX="/usr" ..
  make
}

package() {
  cd "$pkgname-$pkgver/build"
  make DESTDIR="$pkgdir/" install
  # unneeded. to be fixed for 1.3.2
  rm "$pkgdir/usr/lib/udev/rules.d/98-imod-ubuntu14.rules"
}