diff options
author | Janne Heß | 2016-01-16 23:27:01 +0100 |
---|---|---|
committer | Janne Heß | 2016-01-16 23:27:01 +0100 |
commit | 3d588160a8847c40ef52f21a94841c4ec1086d2b (patch) | |
tree | 70876905084845f61aeefa39daeabf4ef5b66c77 /PKGBUILD | |
download | aur-3d588160a8847c40ef52f21a94841c4ec1086d2b.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..eea4479444d8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Janne Heß <jannehess@gmail.com> + +# Contributor: JohnTheKipper <roteocktober@hotmail.com> + +pkgname=bootchart2-git +pkgver=0.14.8.gc39e34e +pkgrel=2 +pkgdesc='Boot Process Performance Visualization' +url='https://github.com/xrmx/bootchart' +license=('GPL') +provides=('bootchart2') +conflicts=('bootchart2' 'bootchart') +depends=('python2' 'busybox' 'pygtk') +backup=('etc/bootchartd2.conf') +source=("git://github.com/xrmx/${pkgname%2-git}") +sha256sums=('SKIP') +arch=('i686' 'x86_64') + +pkgver() { + cd "${srcdir}/${pkgname%2-git}" + git describe --tags --always | sed 's/-[[:digit:]]*-/./g' +} + +build() { + cd "${srcdir}/${pkgname%2-git}" + + sed -i -e 's:sbin:usr/bin:g' \ + -e 's:/lib/systemd/system:/usr/lib/systemd/system:g' \ + -e 's:bootchartd $(DESTDIR)$(EARLY_PREFIX)/usr/:bootchartd $(DESTDIR)$(EARLY_PREFIX)/:g' \ + -e 's:SYSTEMD_UNIT_DIR = .*:SYSTEMD_UNIT_DIR = /usr/lib/systemd/system:g' Makefile + sed -i -e 's:#!/usr/bin/python:#!/usr/bin/python2:g' pybootchartgui.py + sed -i -e 's:sbin:bin:g' *.service.in + + make PROGRAM_SUFFIX=2 PYTHON=python2 PY_LIBDIR=/usr/lib/python2.7 EARLY_PREFIX=/usr all +} + +package() { + cd "${srcdir}/${pkgname%2-git}" + + make PROGRAM_SUFFIX=2 DESTDIR="${pkgdir}" PYTHON=python2 PY_LIBDIR=/usr/lib/python2.7 EARLY_PREFIX=/usr install +} + |