summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 271dfd5fb8159fa7e79c066c9dbbe79970bf1312 (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: willemw <willemw12@gmail.com>
# Contributer: MCOfficer <MCOfficer@gmx.de>

pkgname=whatfiles-git
pkgver=1.0.r5.ge4a6582
pkgrel=1
pkgdesc='Log what files are accessed by any process'
arch=(x86_64)
url=https://github.com/spieglt/whatfiles
license=(GPL3)
makedepends=(git)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')

pkgver() {
  git -C $pkgname describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  make -C $pkgname
}

package() {
  install -Dm755 $pkgname/bin/whatfiles -t "${pkgdir}/usr/bin"
}