1 # Contributor: Mikael Eriksson <mikael_eriksson@miffe.org>
5 pkgdesc="Perfkit is a performance recording toolkit for developers and system administrators."
7 url="https://github.com/chergert/perfkit"
9 depends=('clutter-gtk' 'dbus-glib')
10 makedepends=('git' 'vala' 'gtk-doc')
12 _gitroot="https://github.com/chergert/perfkit.git"
17 msg "Connecting to GIT server...."
19 if [ -d $_gitname ] ; then
20 cd $_gitname && git pull origin
21 msg "The local files are updated."
23 git clone $_gitroot $_gitname
26 msg "GIT checkout done or server timeout"
27 msg "Starting make..."
29 rm -rf "$srcdir/$_gitname-build"
30 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31 cd "$srcdir/$_gitname-build"
37 ./autogen.sh --prefix=/usr
38 sed -i 's,\(.\$(AM_V_CCLD)\$(perfkit_shell_LINK) \$(perfkit_shell_OBJECTS) \$(perfkit_shell_LDADD) \$(LIBS)\),\1 -lgio-2.0,' tools/Makefile
39 sed -i 's,\(.\$(AM_V_CCLD)\$(LINK) \$(test_pk_connection_OBJECTS) \$(test_pk_connection_LDADD) \$(LIBS)\),\1 -lgio-2.0,' tests/perfkit/Makefile
41 make DESTDIR="$pkgdir/" install