# Maintainer: Balló György <ballogyor+arch at gmail dot com>

pkgname=libmanette
pkgver=0.2.2
pkgrel=1
pkgdesc='Simple GObject game controller library'
arch=('x86_64')
license=('LGPL2.1')
url='https://wiki.gnome.org/Apps/Games'
depends=('libevdev' 'libgudev')
makedepends=('gobject-introspection' 'meson' 'vala')
source=("https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz")
sha256sums=('8b1b9fbaf84f1e383141a5715a2494f507e62313721ad993c39a868fc5ccf7d2')

prepare() {
  mkdir build
}

build() {
  cd build
  meson --prefix=/usr --buildtype=release ../$pkgname-$pkgver
  ninja
}

package() {
  cd build
  DESTDIR="$pkgdir" ninja install
}
