summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO27
-rw-r--r--.gitignore6
-rw-r--r--PKGBUILD57
3 files changed, 34 insertions, 56 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5bc6ecb9dff..ba914c26295 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,32 +1,19 @@
-# Generated by mksrcinfo v8
-# Thu May 30 00:42:08 UTC 2019
pkgbase = python-llvmlite-git
- pkgdesc = A lightweight LLVM python binding for writing JIT compilers
- pkgver = 0.29.0dev0.r36.gd5e5cb0
+ pkgdesc = A lightweight LLVM python binding for writing JIT compilers (Git version)
+ pkgver = 0.36.0dev0.r31.g9946a22
pkgrel = 1
url = https://github.com/numba/llvmlite
arch = i686
arch = x86_64
license = BSD
makedepends = git
- makedepends = cython
- makedepends = cython2
- makedepends = python2-enum34
+ makedepends = llvm10
depends = python
- depends = python2
- depends = llvm
+ depends = llvm10-libs
+ provides = python-llvmlite=0.36.0dev0.r31.g9946a22
+ conflicts = python-llvmlite
source = llvmlite::git+https://github.com/numba/llvmlite.git
- md5sums = SKIP
+ sha256sums = SKIP
pkgname = python-llvmlite-git
- depends = python
- depends = llvm
- provides = python-llvmlite=$pkgver
- conflicts = python-llvmlite
-
-pkgname = python2-llvmlite-git
- depends = python2
- depends = llvm
- provides = python2-llvmlite=$pkgver
- conflicts = python2-llvmlite
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..16c47f33c9d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+llvmlite/
+pkg/
+src/
+*.pkg.tar.xz
+*.pkg.tar.zst
+*.log
diff --git a/PKGBUILD b/PKGBUILD
index 0257eb90a45..81a962490c9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,53 +1,38 @@
-# Maintainer: Quan Guo <guotsuan at gmail dot com>
+# Maintainer: Blair Bonnett <blair dot bonnett at gmail dot com>
+# Contributor: Quan Guo <guotsuan at gmail dot com>
-pkgname=(python-llvmlite-git python2-llvmlite-git)
-
-pkgbase=python-llvmlite-git
+pkgname=python-llvmlite-git
_gitname=llvmlite
-pkgver=0.29.0dev0.r36.gd5e5cb0
+pkgver=0.36.0dev0.r31.g9946a22
pkgrel=1
-pkgdesc="A lightweight LLVM python binding for writing JIT compilers"
+pkgdesc="A lightweight LLVM python binding for writing JIT compilers (Git version)"
url="https://github.com/numba/llvmlite"
arch=('i686' 'x86_64')
license=('BSD')
-depends=('python' 'python2' 'llvm' )
-makedepends=('git' 'cython' 'cython2' 'python2-enum34')
-conflicts=()
-replaces=()
-backup=()
+depends=('python' 'llvm10-libs')
+makedepends=('git' 'llvm10')
+provides=("python-llvmlite=$pkgver")
+conflicts=('python-llvmlite')
source=(${_gitname}::git+https://github.com/numba/llvmlite.git)
-md5sums=('SKIP')
-
-
-prepare() {
- cp -a ${_gitname}{,-py2}
-}
+sha256sums=('SKIP')
pkgver() {
cd "$_gitname"
git describe --long | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}
-package_python-llvmlite-git() {
- provides=('python-llvmlite=$pkgver')
- depends=('python' 'llvm' )
- conflicts=('python-llvmlite')
- cd ${srcdir}/${_gitname}
- sed -i 's/-lLLVMOProfileJIT/ /g' ffi/Makefile.linux
- python setup.py install \
- --prefix=/usr \
- --root=$pkgdir
+build() {
+ cd "$srcdir/$_gitname"
+ python setup.py build
}
+check() {
+ cd "$srcdir/$_gitname"
+ python runtests.py
+}
-package_python2-llvmlite-git() {
- provides=('python2-llvmlite=$pkgver')
- depends=('python2' 'llvm' )
- conflicts=('python2-llvmlite')
-
- cd ${srcdir}/${_gitname}-py2
- sed -i 's/-lLLVMOProfileJIT/ /g' ffi/Makefile.linux
- python2 setup.py install \
- --prefix=/usr \
- --root=$pkgdir
+package() {
+ cd ${srcdir}/${_gitname}
+ python setup.py install --skip-build --prefix=/usr --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}