From f85b4cf31b0e3947f29ce1e9b9140dc89e1e706d Mon Sep 17 00:00:00 2001 From: Aurélien DESBRIÈRES Date: Wed, 8 Oct 2014 17:41:21 +0200 Subject: egypt A devilishly simple tool for creating call graphs of C --- pcr/egypt/PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 pcr/egypt/PKGBUILD (limited to 'pcr/egypt') diff --git a/pcr/egypt/PKGBUILD b/pcr/egypt/PKGBUILD new file mode 100644 index 000000000..463d6fb32 --- /dev/null +++ b/pcr/egypt/PKGBUILD @@ -0,0 +1,31 @@ +# Contributor : Ivan Sichmann Freitas +# Contributor : Dan McGee +# Maintainer : Aurélien DESBRIÈRES + +pkgname=egypt +pkgver=1.10 +pkgrel=2 +pkgdesc="A devilishly simple tool for creating call graphs of C programs" +url="http://www.gson.org/egypt/" +license=('GPL') +arch=('any') +depends=('perl' 'graphviz') +source=(http://www.gson.org/$pkgname/download/$pkgname-$pkgver.tar.gz) + +build() { + cd $srcdir/$pkgname-$pkgver + perl Makefile.PL + make + +} + +package() { + cd $srcdir/$pkgname-$pkgver + make DESTDIR=$pkgdir install + # remove a local-only file + find $pkgdir -name perllocal.pod -exec rm {} \; + # moving the executable to the default system path + mv $pkgdir/usr/bin/site_perl/egypt $pkgdir/usr/bin + rmdir $pkgdir/usr/bin/site_perl + rmdir $pkgdir/usr/lib/perl5/core_perl +} -- cgit v1.2.3