summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6594a8de78575452dc81af4837dec1f7d3bd017e (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
31
32
33
34
# Maintainer: Dracomage <dracomage at disroot dot org>
# Contributor: Jonas Wunderlich <aur[at]03j[dot]de>
# Contributor: Markus Weimar <mail[at]markusweimar[dot]de>
# Contributor: Frank Phillips <frankalso[at]gmail[dot]com>

_pkgname=fatrace
pkgname=${_pkgname}-minimal
pkgver=0.17.0
pkgrel=2
pkgdesc="Reports file access events from all running processes. Without powertop and python dependency; i.e. without the 'power-usage-report' script."
arch=('x86_64' 'aarch64' 'armv6l')
url="https://github.com/martinpitt/fatrace"
license=('GPL')
depends=(glibc)
provides=($_pkgname)
conflicts=($_pkgname)
source=(fatrace.tar.gz::https://github.com/martinpitt/fatrace/archive/${pkgver}.tar.gz
        Makefile.patch)
sha256sums=('38f23014be5c2d5f7d40560931ae8bf24161db311d1795631bfaba02845eed90'
            '4b4c974c24d2ba9928ff578952656fa3383f6d5142b98b86aecb051668c43896')

prepare() {
    patch --directory="$_pkgname-$pkgver" --forward --strip=2 --input="${srcdir}/Makefile.patch"
}

build() {
    cd "$_pkgname-$pkgver"
    make
}

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