~alpine/aports

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2 2

[PATCH 1/2] community/py3-llfuse: new aport

Details
Message ID
<20200722154546.8484-1-sir@cmpwn.com>
DKIM signature
missing
Download raw message
Patch: +31 -0
---
 community/py3-llfuse/APKBUILD | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 community/py3-llfuse/APKBUILD

diff --git a/community/py3-llfuse/APKBUILD b/community/py3-llfuse/APKBUILD
new file mode 100644
index 0000000000..5cf02d6163
--- /dev/null
+++ b/community/py3-llfuse/APKBUILD
@@ -0,0 +1,31 @@
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-llfuse
_pyname=llfuse
pkgver=1.3.6
pkgrel=0
pkgdesc="Python bindings for the low-level FUSE API"
url="https://pypi.org/project/llfuse/"
arch="all"
license="LGPL-3.0"
depends="python3 python3-dev cython fuse-dev"
checkdepends="py3-pytest"
makedepends="py3-setuptools"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.bz2"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pyver=$(python3 --version | cut -d' ' -f2 | cut -d. -f1-2)
	export PYTHONPATH=build/lib.linux-$(uname -m)-$pyver/
	pytest-3
}

package() {
	python3 setup.py install --root="$pkgdir" --optimize=1
}

sha512sums="d67e39daf65c92ebb5bf69abb0c5dc3a88460228b5ec5ee762a11fc909369562411297e8ff9f512ee1ef539d8abec765924be581703fb7e99963c6512cb1f0bd  llfuse-1.3.6.tar.bz2"
-- 
2.27.0

[PATCH 2/2] community/borgbackup: add py3-llfuse dependency

Details
Message ID
<20200722154546.8484-2-sir@cmpwn.com>
In-Reply-To
<20200722154546.8484-1-sir@cmpwn.com> (view parent)
DKIM signature
missing
Download raw message
Patch: +2 -2
This is necessary to use borg mount
---
 community/borgbackup/APKBUILD | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/community/borgbackup/APKBUILD b/community/borgbackup/APKBUILD
index 30f763102a..c37d15f255 100644
--- a/community/borgbackup/APKBUILD
+++ b/community/borgbackup/APKBUILD
@@ -4,12 +4,12 @@
pkgname=borgbackup
_pkgname=borg
pkgver=1.1.13
pkgrel=0
pkgrel=1
pkgdesc="Deduplicating backup program"
url="https://www.borgbackup.org/"
arch="all !s390x !mips !mips64 !armhf" # limited by py3-pyzmq + https://gitlab.alpinelinux.org/alpine/aports/-/issues/11644
license="BSD-3-Clause"
depends="python3 py3-pyzmq py3-setuptools"
depends="python3 py3-pyzmq py3-setuptools py3-llfuse"
makedepends="python3-dev lz4-dev acl-dev attr-dev openssl-dev linux-headers
	zstd-dev"
checkdepends="py3-pytest py3-pytest-benchmark"
-- 
2.27.0
Details
Message ID
<20200722130216.729f7114@enterprise>
In-Reply-To
<20200722154546.8484-1-sir@cmpwn.com> (view parent)
DKIM signature
missing
Download raw message
On Wed, 22 Jul 2020 09:45:45 -0600
Drew DeVault <sir@cmpwn.com> wrote:

> ---
>  community/py3-llfuse/APKBUILD | 31 +++++++++++++++++++++++++++++++
>  1 file changed, 31 insertions(+)
>  create mode 100644 community/py3-llfuse/APKBUILD
> 
> diff --git a/community/py3-llfuse/APKBUILD
> b/community/py3-llfuse/APKBUILD new file mode 100644
> index 0000000000..5cf02d6163
> --- /dev/null
> +++ b/community/py3-llfuse/APKBUILD
> @@ -0,0 +1,31 @@
> +# Maintainer: Drew DeVault <sir@cmpwn.com>
> +pkgname=py3-llfuse
> +_pyname=llfuse
> +pkgver=1.3.6
> +pkgrel=0
> +pkgdesc="Python bindings for the low-level FUSE API"
> +url="https://pypi.org/project/llfuse/"
> +arch="all"
> +license="LGPL-3.0"

Please use the full SPDX identifier

> +depends="python3 python3-dev cython fuse-dev"
> +checkdepends="py3-pytest"
> +makedepends="py3-setuptools"
> +_pypiprefix="${_pyname%${_pyname#?}}"
> +source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.bz2"
> +builddir="$srcdir/$_pyname-$pkgver"
> +
> +build() {
> +	python3 setup.py build
> +}
> +
> +check() {
> +	pyver=$(python3 --version | cut -d' ' -f2 | cut -d. -f1-2)
> +	export PYTHONPATH=build/lib.linux-$(uname -m)-$pyver/

Think you can just use PYTHONPATH="$(echo $PWD/build/lib.*)" instead of
doing all this cut cut dance

> +	pytest-3
> +}
> +
> +package() {
> +	python3 setup.py install --root="$pkgdir" --optimize=1
> +}
> +
> +sha512sums="d67e39daf65c92ebb5bf69abb0c5dc3a88460228b5ec5ee762a11fc909369562411297e8ff9f512ee1ef539d8abec765924be581703fb7e99963c6512cb1f0bd
>  llfuse-1.3.6.tar.bz2"
Reply to thread Export thread (mbox)