summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f5b4ac84f2c21b653ad385020883274add767f5b (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
35
36
37
38
39
40
41
42
43
44
45
46
# Contributor: Dave Reisner <d@falconindy.com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=systemd-bootchart-git
pkgver=r54.ef042f6
pkgrel=1
pkgdesc="Boot performance graphing tool"
arch=('i686' 'x86_64')
url="https://github.com/systemd/systemd-bootchart"
license=('LGPL2.1')
depends=('libsystemd.so')
makedepends=('git' 'intltool')
provides=('systemd-bootchart')
conflicts=('systemd-bootchart' 'systemd<=229')
source=("git+https://github.com/systemd/systemd-bootchart")
md5sums=('SKIP')
backup=('etc/systemd/bootchart.conf')

pkgver() {
  cd "systemd-bootchart"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "systemd-bootchart"

  ./autogen.sh
}

build() {
  cd "systemd-bootchart"

  ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --libexecdir=/usr/lib \
    --libdir=/usr/lib

  make
}

package() {
  cd "systemd-bootchart"

  make DESTDIR="$pkgdir" install
}