blob: 2c3801f181656d98ff52060a4227fc4cbbd6f342 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: Snogard <snogardb at gmail dot com>
# Contributor: @RubenKelevra <cyrond@gmail.com>
# Contributor: Jose Riha <jose1711 [at] gmail (dot) com>
# Contributor: Maximilian Knespel <mxmlnknp at gmail dot com>
pkgname=ratarmount
pkgver=0.15.2
pkgrel=1
pkgdesc="Mount tar files via fusepy. Supports Recursive Mounting, Compressed Files, Read-Only Bind Mounting, Union Mounting and Write Overlays. A fast random access alternative to archivemount."
arch=(any)
url="https://github.com/mxmlnkn/$pkgname"
conflicts=("${pkgname}-git")
license=('MIT')
depends=(
'python>=3.11'
# AUR packages
'python-fusepy'
'python-rapidgzip'
'python-indexed-gzip'
'python-xz'
'python-indexed-zstd'
# Extra repository packages
'python-rarfile'
'python-libarchive-c'
)
makedepends=(
'python-build'
'python-installer'
'python-wheel'
'python-setuptools'
)
_pkg_ext='.tar.gz'
source=("${pkgname}-${pkgver}${_pkg_ext}::${url}/archive/refs/tags/v${pkgver}${_pkg_ext}")
b2sums=('ac610468006f99bf528022ecb585ab51f2b0ef48a4b255a1ad8a692703f85890fd9991a8c6c05d938d421fbbd9e9c450d764b2f0b24a84d2a97ff1d40ede5fc9')
build() {
cd "$srcdir/${pkgname}-${pkgver}/core"
python -m build --wheel --no-isolation
cd "$srcdir/${pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/${pkgname}-${pkgver}/core"
python -m installer --compile-bytecode=2 --destdir="$pkgdir" dist/*.whl
cd "$srcdir/${pkgname}-${pkgver}"
python -m installer --compile-bytecode=2 --destdir="$pkgdir" dist/*.whl
install -Dm755 "README.md" "$pkgdir/usr/share/doc/$pkgname/README.md"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|