# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Alessandro Sagratini

pkgname=inotify-tools
pkgver=4.23.9.0
pkgrel=2.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 powerpc64le powerpc64 powerpc riscv64)
url="https://github.com/inotify-tools/inotify-tools"
license=('GPL')
depends=()
makedepends=('gcc' 'make' 'doxygen')
options=('docs')
source=($pkgname-$pkgver.tar.gz::https://github.com/inotify-tools/inotify-tools/archive/refs/tags/$pkgver.tar.gz)
sha256sums=('1dfa33f80b6797ce2f6c01f454fd486d30be4dca1b0c5c2ea9ba3c30a5c39855')

prepare() {
  cd "$srcdir"/$pkgname-$pkgver
#  sed -i 's|-Werror||g' src/Makefile.*
}

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

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