summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD48
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..657158ad3f0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = python2-plop-git
+ pkgdesc = Python Low-Overhead stack-sampling Profiler
+ pkgver = 20130523
+ pkgrel = 1
+ url = https://github.com/bdarnell/plop/
+ arch = any
+ license = MIT
+ makedepends = python2-distribute
+ makedepends = git
+ depends = python2
+ optdepends = python2-tornado: for plop.viewer web server
+
+pkgname = python2-plop-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d41783964b4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer : Kevin Brubeck Unhammer <unhammer+dill@mm.st>
+pkgname=python2-plop-git
+pkgver=20130523
+pkgrel=1
+pkgdesc="Python Low-Overhead stack-sampling Profiler"
+url="https://github.com/bdarnell/plop/"
+license=('MIT')
+arch=('any')
+depends=('python2')
+makedepends=('python2-distribute' 'git')
+optdepends=('python2-tornado: for plop.viewer web server')
+
+_gitroot=("git://github.com/bdarnell/plop.git")
+_gitname=plop
+
+
+build() {
+ cd ${srcdir}/
+
+ msg "Connecting to the GIT server...."
+ if [[ -d ${srcdir}/${_gitname} ]] ; then
+ cd ${_gitname}
+ git pull origin
+ msg "The local files are updated..."
+ else
+ git clone ${_gitroot} ${_gitname}
+ fi
+
+ msg "GIT checkout done."
+
+ msg "Starting make for: ${pkgname}"
+
+ if [[ -d ${srcdir}/${_gitname}-build ]]; then
+ msg "Cleaning the previous build directory..."
+ rm -rf ${srcdir}/${_gitname}-build
+ fi
+
+ git clone ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
+
+ cd ${srcdir}/${_gitname}-build
+}
+
+package() {
+ cd ${srcdir}/${_gitname}-build
+
+ python2 setup.py install --root=$pkgdir
+}
+