summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 614880a681c8776019660856befbddece8c58c9a (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
# Maintainer: Pouyan Heyratpour <me@pouyan.dev>

pkgname=polywatch-git
pkgver=1.2.0
pkgrel=1
pkgdesc="File change watcher with filter & rate limit feature which run command(s) when file change events happen"
arch=('any')
url="https://pouyanh.github.io/polywatch/"
license=('GPL3')
depends=()
makedepends=('go' 'goreleaser')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/pouyanh/polywatch/archive/v${pkgver}.tar.gz)
md5sums=('1741cdd96afd036f2bcdf0f5306520ed')
provides=('polywatch')
conflicts=('polywatch')

build() {
  cd "${pkgname%-git}-${pkgver}"

  goreleaser build --snapshot --clean --single-target -o dist/polywatch
}

package() {
  cd "${pkgname%-git}-${pkgver}"

  install -Dm 755 dist/polywatch -t "${pkgdir}/usr/bin"
}