# $Id: PKGBUILD 280527 2018-01-08 14:15:35Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Alessandro Sagratini

pkgname=inotify-tools
pkgver=3.20.1
pkgrel=1
pkgdesc="inotify-tools is a C library and a set of command-line programs for Linux providing a simple interface to inotify."
arch=('x86_64')
url="https://github.com/rvoicilas/inotify-tools"
license=('GPL')
depends=()
makedepends=('gcc' 'make' 'doxygen')
options=('docs')
source=($pkgname-$pkgver.tar.gz::https://github.com/rvoicilas/inotify-tools/archive/$pkgver.tar.gz)
sha256sums=('a433cc1dedba851078276db69b0e97f9fe41e4ba3336d2971adfca4b3a6242ac')

build() {
  cd "$srcdir"/$pkgname-$pkgver
  ./autogen.sh
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir"/$pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
