From db85418647b181e7655c2ecc591333c2d8b51192 Mon Sep 17 00:00:00 2001 From: link2xt Date: Sun, 22 Feb 2026 01:47:07 +0000 Subject: [PATCH] Initial commit --- .SRCINFO | 16 ++++++++++++++++ .gitignore | 4 ++++ LICENSE | 12 ++++++++++++ LICENSES/0BSD.txt | 1 + PKGBUILD | 23 +++++++++++++++++++++++ REUSE.toml | 25 +++++++++++++++++++++++++ 6 files changed, 81 insertions(+) create mode 100644 .SRCINFO create mode 100644 .gitignore create mode 100644 LICENSE create mode 120000 LICENSES/0BSD.txt create mode 100644 PKGBUILD create mode 100644 REUSE.toml diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000000000..b400087e21d6f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = python-pyoprf + pkgdesc = Python bindings for the liboprf library + pkgver = 0.9.3 + pkgrel = 1 + url = https://pypi.org/project/pyoprf/ + arch = any + license = LGPL-3.0-or-later + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + makedepends = python-setuptools + depends = liboprf + source = https://files.pythonhosted.org/packages/source/p/pyoprf/pyoprf-0.9.3.tar.gz + b2sums = 22916713c559020c51094c854d0d49e60c7061b80a8ba1f870119556d39648021f7333c7bb1dea33d36608fef60636098bf246e1f0d7638f682af150bfbaf615 + +pkgname = python-pyoprf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000..7cdb452e9aa5c --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.asc +*.log +*.pkg.tar.zst +*.tar.gz diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000..b87c5e4be4423 --- /dev/null +++ b/LICENSE @@ -0,0 +1,12 @@ +Copyright Arch Linux Contributors + +Permission to use, copy, modify, and/or distribute this software for +any purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL +WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE +FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY +DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN +AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT +OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/LICENSES/0BSD.txt b/LICENSES/0BSD.txt new file mode 120000 index 0000000000000..ea5b60640b01f --- /dev/null +++ b/LICENSES/0BSD.txt @@ -0,0 +1 @@ +../LICENSE \ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000000000..5d58e0337e7f0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: link2xt +_name=pyoprf +pkgname=python-$_name +pkgver=0.9.3 +pkgrel=1 +pkgdesc="Python bindings for the liboprf library" +arch=(any) +url="https://pypi.org/project/pyoprf/" +license=('LGPL-3.0-or-later') +depends=(liboprf) +makedepends=(python-build python-installer python-wheel python-setuptools) +source=(https://files.pythonhosted.org/packages/source/${_name::1}/${_name//-/_}/${_name//-/_}-$pkgver.tar.gz) +b2sums=('22916713c559020c51094c854d0d49e60c7061b80a8ba1f870119556d39648021f7333c7bb1dea33d36608fef60636098bf246e1f0d7638f682af150bfbaf615') + +build() { + cd $_name-$pkgver + python -m build --wheel --no-isolation +} + +package() { + cd $_name-$pkgver + python -m installer --destdir="$pkgdir" dist/*.whl +} diff --git a/REUSE.toml b/REUSE.toml new file mode 100644 index 0000000000000..49e3625ad0e49 --- /dev/null +++ b/REUSE.toml @@ -0,0 +1,25 @@ +version = 1 + +[[annotations]] +path = [ + "PKGBUILD", + "README.md", + "keys/**", + ".SRCINFO", + ".gitignore", + ".nvchecker.toml", + "*.install", + "*.sysusers", + "*sysusers.conf", + "*.tmpfiles", + "*tmpfiles.conf", + "*.logrotate", + "*.pam", + "*.service", + "*.socket", + "*.timer", + "*.desktop", + "*.hook", +] +SPDX-FileCopyrightText = "Arch Linux contributors" +SPDX-License-Identifier = "0BSD"