mirror of
https://github.com/bertptrs/aur.git
synced 2025-12-25 12:40:30 +01:00
Compare commits
2 Commits
2f4c25df74
...
d19d0892a9
| Author | SHA1 | Date | |
|---|---|---|---|
| d19d0892a9 | |||
| 7851b0111b |
@@ -1,11 +1,14 @@
|
||||
pkgbase = python-opnieuw
|
||||
pkgdesc = A general-purpose retrying library, written in pure Python
|
||||
pkgver = 3.1.0
|
||||
pkgrel = 1
|
||||
pkgrel = 2
|
||||
url = https://github.com/channable/opnieuw
|
||||
arch = any
|
||||
license = BSD-3-Clause
|
||||
makedepends = python-build
|
||||
makedepends = python-installer
|
||||
makedepends = python-setuptools
|
||||
makedepends = python-setuptools-scm
|
||||
depends = python
|
||||
depends = python-typing_extensions
|
||||
source = python-opnieuw-3.1.0.tar.gz::https://github.com/channable/opnieuw/archive/refs/tags/v3.1.0.tar.gz
|
||||
|
||||
@@ -1,28 +1,28 @@
|
||||
# Maintainer: Bert Peters <bert@bertptrs.nl>
|
||||
pkgname=python-opnieuw
|
||||
pkgver=3.1.0
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="A general-purpose retrying library, written in pure Python"
|
||||
arch=('any')
|
||||
url="https://github.com/channable/opnieuw"
|
||||
license=('BSD-3-Clause')
|
||||
depends=('python' 'python-typing_extensions')
|
||||
makedepends=('python-setuptools')
|
||||
makedepends=(python-build python-installer python-setuptools{,-scm})
|
||||
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
|
||||
sha256sums=('d57ca44672b4a81a6fd73e8d8f039e4cab0149e361c8b0e3a036fa5588544802')
|
||||
|
||||
build() {
|
||||
cd "opnieuw-$pkgver"
|
||||
python setup.py build
|
||||
cd "opnieuw-$pkgver"
|
||||
python -m build --wheel --no-isolation
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "opnieuw-$pkgver"
|
||||
python -m unittest
|
||||
cd "opnieuw-$pkgver"
|
||||
python -m unittest
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "opnieuw-$pkgver"
|
||||
python setup.py install --root="$pkgdir" --optimize=1
|
||||
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
|
||||
cd "opnieuw-$pkgver"
|
||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
|
||||
}
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
pkgbase = simdjson
|
||||
pkgdesc = A C++ library to see how fast we can parse JSON with complete validation.
|
||||
pkgver = 3.12.0
|
||||
pkgrel = 1
|
||||
epoch = 1
|
||||
url = https://github.com/simdjson/simdjson
|
||||
arch = x86_64
|
||||
license = Apache-2.0
|
||||
makedepends = cmake
|
||||
depends = gcc-libs
|
||||
source = simdjson-3.12.0.tar.gz::https://github.com/simdjson/simdjson/archive/v3.12.0.tar.gz
|
||||
sha256sums = 1e5e82f0a34c331c1b0d0c21609791bfe6d6849edfc24983fc241626b433e1c3
|
||||
|
||||
pkgname = simdjson
|
||||
@@ -1,5 +0,0 @@
|
||||
[simdjson]
|
||||
source = "github"
|
||||
github = "lemire/simdjson"
|
||||
prefix = "v"
|
||||
use_latest_release = true
|
||||
@@ -1,35 +0,0 @@
|
||||
# Maintainer: Bert Peters <bert@bertptrs.nl>
|
||||
pkgname=simdjson
|
||||
epoch=1
|
||||
pkgver=3.12.0
|
||||
pkgrel=1
|
||||
pkgdesc="A C++ library to see how fast we can parse JSON with complete validation."
|
||||
arch=('x86_64')
|
||||
url="https://github.com/simdjson/simdjson"
|
||||
license=('Apache-2.0')
|
||||
depends=(gcc-libs)
|
||||
makedepends=(cmake)
|
||||
source=("$pkgname-$pkgver.tar.gz::https://github.com/simdjson/simdjson/archive/v$pkgver.tar.gz")
|
||||
sha256sums=('1e5e82f0a34c331c1b0d0c21609791bfe6d6849edfc24983fc241626b433e1c3')
|
||||
|
||||
build() {
|
||||
cmake -B build -S "$pkgname-$pkgver" \
|
||||
-DBUILD_SHARED_LIBS='On' \
|
||||
-DCMAKE_BUILD_TYPE='None' \
|
||||
-DCMAKE_INSTALL_PREFIX='/usr' \
|
||||
-Wno-dev
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
# Running tests requires enabling developer mode, which greatly increases the
|
||||
# required compilation, so we don't.
|
||||
#
|
||||
# Also tests refuse to compile with current GCC
|
||||
# check() {
|
||||
# cd "$pkgname-$pkgver"
|
||||
# make test
|
||||
# }
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir/" cmake --install build
|
||||
}
|
||||
Reference in New Issue
Block a user