Skip to content

Commit

Permalink
feat(python-borgstore): dep for borg2
Browse files Browse the repository at this point in the history
  • Loading branch information
xiota committed Dec 23, 2024
1 parent b9eb0ed commit c7548dd
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 0 deletions.
9 changes: 9 additions & 0 deletions python-borgstore/.CI/PKGBUILD.append
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
url="https://github.com/borgbackup/borgstore"
depends=(
'python'
${depends[@]//python>*/}
)
makedepends+=(
'python-setuptools'
'python-setuptools-scm'
)
1 change: 1 addition & 0 deletions python-borgstore/.CI/config
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CI_PKGBUILD_SOURCE=aur
2 changes: 2 additions & 0 deletions python-borgstore/.CI/info
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
REQ_ORIGIN=github/3228
REQ_REASON=depends
15 changes: 15 additions & 0 deletions python-borgstore/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
pkgbase = python-borgstore
pkgdesc = Borg Backup's backend key/value store
pkgver = 0.1.0
pkgrel = 2
url = https://github.com/borgbackup/borgstore/
arch = any
license = BSD-3-Clause
makedepends = python-build
makedepends = python-installer
makedepends = python-wheel
depends = python>=3.12
source = https://github.com/borgbackup/borgstore//releases/download/0.1.0/borgstore-0.1.0.tar.gz
b2sums = 31f4a5b26898e6e056a8447f9c8b451f3caae10f96009f3f88c20d0bcfa104d5e200ea4ffe78d4534495f834f98f2025dac6f82bb2e8293731bb9d56776cba83

pkgname = python-borgstore
28 changes: 28 additions & 0 deletions python-borgstore/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
pkgname='python-borgstore'
_module='borgstore'
pkgver='0.1.0'
pkgrel=2
pkgdesc='Borg Backup'\''s backend key/value store'
url='https://github.com/borgbackup/borgstore/'
depends=(
'python>=3.12'
)
makedepends=(
'python-build'
'python-installer'
'python-wheel'
)
license=('BSD-3-Clause')
arch=('any')
source=("${url}/releases/download/${pkgver}/${_module}-${pkgver}.tar.gz")
b2sums=('31f4a5b26898e6e056a8447f9c8b451f3caae10f96009f3f88c20d0bcfa104d5e200ea4ffe78d4534495f834f98f2025dac6f82bb2e8293731bb9d56776cba83')

build() {
cd "${srcdir}/${_module}-${pkgver}"
python -m build --wheel --no-isolation
}

package() {
cd "${srcdir}/${_module}-${pkgver}"
python -m installer --compile-bytecode=2 --destdir="${pkgdir}" dist/*.whl
}

0 comments on commit c7548dd

Please sign in to comment.