summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorWil Thomason2020-05-20 10:00:06 -0400
committerWil Thomason2020-05-20 10:00:06 -0400
commitb858cd23bdcddac952d471854d690d6458c65039 (patch)
tree5fe7552b49df90eafd39f63296553e76a81f2106
parent78625e109e60b3cf2a430d72a7d774827fd34949 (diff)
downloadaur-b858cd23bdcddac952d471854d690d6458c65039.tar.gz
Update test for Heap-Layers and install libscalene.so
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD11
2 files changed, 10 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e65b61f063d..092e40df648 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = python-scalene-git
pkgdesc = Scalene is a high-performance, high-precision CPU and memory profiler for Python
pkgver = r461.822c83d
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/emeryberger/scalene
arch = any
license = Apache-2.0
diff --git a/PKGBUILD b/PKGBUILD
index 9c8ef5b0cab..14c7e45b21f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname='python-scalene-git'
pkgver=r461.822c83d
-pkgrel=1
+pkgrel=2
pkgdesc='Scalene is a high-performance, high-precision CPU and memory profiler for Python'
arch=('any')
url='https://github.com/emeryberger/scalene'
@@ -18,13 +18,20 @@ pkgver() {
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
+prepare() {
+ cd "$srcdir/${pkgname}"
+ if [ ! -d Heap-Layers ] || [ -z "$(ls -A Heap-Layers)" ]; then
+ git clone https://github.com/emeryberger/Heap-Layers
+ fi
+}
+
build() {
cd "$srcdir/${pkgname}"
- git clone https://github.com/emeryberger/Heap-Layers
make
}
package() {
cd "$srcdir/${pkgname}"
+ install -Dm755 libscalene.so ${pkgdir}/usr/lib/libscalene.so
python setup.py install --root="${pkgdir}" --optimize=1
}