summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d4c5db107c04b9091ccdfa177e9c34de2727b9b0 (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
28
29
30
# Maintainer : Antonio Orefice <kokoko3k@gmail.com>

pkgname=bindfsit-git
pkgver=20200427
pkgrel=1
pkgdesc="Rebinds filesystems to free stuck processes."
arch=('any')
url="https://github.com/kokoko3k/bindfsit"
license=('custom')

depends=(
    'bindfs'
    'bash'
)

_gitroot="https://github.com/kokoko3k/bindfsit.git"

build() {
  cd $srcdir
  rm -Rf $srcdir/bindfsit &>/dev/null || echo "No old repository found, proceding to git clone..."
  git clone --depth 1 $_gitroot || return 1
}

package() {
  cd bindfsit
  install -m644 -D "bindfsit@.service" "${pkgdir}/usr/lib/systemd/system/bindfsit@.service"
  install -m755 -D "bindfsit.sh" "${pkgdir}/usr/bin/bindfsit.sh"
  install -m644 -D "example.cfg" "${pkgdir}/etc/bindfsit/example.cfg"
}