summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorWil Thomason2020-05-19 13:43:03 -0400
committerWil Thomason2020-05-19 13:45:17 -0400
commit78625e109e60b3cf2a430d72a7d774827fd34949 (patch)
tree3070c37210acc93a4439e1fd28d9b0fa21549cae
downloadaur-78625e109e60b3cf2a430d72a7d774827fd34949.tar.gz
Initial package creation
-rw-r--r--.SRCINFO19
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD30
3 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e65b61f063d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = python-scalene-git
+ pkgdesc = Scalene is a high-performance, high-precision CPU and memory profiler for Python
+ pkgver = r461.822c83d
+ pkgrel = 1
+ url = https://github.com/emeryberger/scalene
+ arch = any
+ license = Apache-2.0
+ makedepends = python-setuptools
+ makedepends = make
+ makedepends = clang
+ makedepends = git
+ depends = python>=3.6
+ depends = python-numpy
+ provides = python-scalene
+ source = python-scalene-git::git+https://github.com/emeryberger/scalene.git
+ sha256sums = SKIP
+
+pkgname = python-scalene-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..72e8ffc0db8
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9c8ef5b0cab
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Wil Thomason <wbthomason at cs dot cornell dot edu>
+
+pkgname='python-scalene-git'
+pkgver=r461.822c83d
+pkgrel=1
+pkgdesc='Scalene is a high-performance, high-precision CPU and memory profiler for Python'
+arch=('any')
+url='https://github.com/emeryberger/scalene'
+license=('Apache-2.0')
+depends=('python>=3.6' 'python-numpy')
+makedepends=('python-setuptools' 'make' 'clang' 'git')
+source=("${pkgname}::git+https://github.com/emeryberger/scalene.git")
+sha256sums=('SKIP')
+provides=('python-scalene')
+
+pkgver() {
+ cd "$srcdir/${pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/${pkgname}"
+ git clone https://github.com/emeryberger/Heap-Layers
+ make
+}
+
+package() {
+ cd "$srcdir/${pkgname}"
+ python setup.py install --root="${pkgdir}" --optimize=1
+}