summaryrefslogtreecommitdiff
path: root/pcr/egypt/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/egypt/PKGBUILD')
-rw-r--r--pcr/egypt/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
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 <ivansichfreitas@gmail.com>
+# Contributor : Dan McGee <dpmcgee@gmail.com>
+# Maintainer : Aurélien DESBRIÈRES <aurelien@hackers.camp>
+
+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
+}