# Contributor: Stuart Cardall # Maintainer: Stuart Cardall pkgname=entr pkgver=5.3 pkgrel=1 pkgdesc="Event Notify Test Runner: Run arbitrary commands when files change" url="https://eradman.com/entrproject" arch="all" license="ISC" subpackages="$pkgname-doc" makedepends="vim mercurial file util-linux" checkdepends="bash tmux util-linux-misc" source="https://eradman.com/entrproject/code/entr-$pkgver.tar.gz fix-git-invocation.patch" prepare() { default_prepare # The test script is not compatibile with BusyBox ash # and also uses several GNU extensions (e.g. function syntax). sed -i system_test.sh -e 's|#!/bin/sh|#!/bin/bash|' } build() { ./configure make } check() { SHELL=/bin/sh script --return --quiet -c "make -j1 test" /dev/null } package() { PREFIX="$pkgdir/usr" make install } sha512sums=" b160cb60de99a743226b472256d937ef6ace54f5350a83420f59ac2706cd0fb042d6f85fcac6c73e76c161c6225b956df8b00156dea9ce55d8b8225e8ca13e7f entr-5.3.tar.gz 236f6efa6d02bc95abb8f9194ffe81d50a8f0813fc7fb73f2310022bd2aae90f1922edfbb8c104a9838840d1831c52639d9f62bbcb05081b9b8ee93c3629d5e8 fix-git-invocation.patch "