blob: 612695031df130fb5728c280ba8710ddb7f210ab (
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
|
# Maintainer: Patrick Northon <northon_patrick3@yahoo.ca>
pkgname=par2deep
pkgver=1.10.2
pkgrel=1
pkgdesc="Create, verify and repair parity files in a file tree."
arch=('any')
url="https://github.com/brenthuisman/par2deep"
license=('LGPL3')
depends=('python')
makedepends=('gendesk' 'python-setuptools' 'python-build' 'python-installer' 'python-wheel')
source=("$pkgname-$pkgver.tar.gz::https://github.com/brenthuisman/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('4119d16f9fa756b5368d0ee69734acd712f0341673086b523b6c70316789ac35')
_srcdir="${pkgname}-${pkgver}"
build() {
gendesk -f -n --pkgname "${pkgname}" --categories 'Utility'
cd "${_srcdir}"
python -m build --wheel --no-isolation
}
package() {
depends+=(
'python-tqdm'
'python-configargparse'
'python-send2trash'
'python-pyqt5'
'par2cmdline')
install -Dm644 "${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
cd "${_srcdir}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 'LICENSE' -t "$pkgdir/usr/share/licenses/${pkgname}"
}
|