blob: c1e4ebfe46560693cc8b5bf9529e9ac5322fe014 (
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
53
54
55
56
|
# Maintainer:
# Contributor: nblock <nblock [/at\] archlinux DOT us>
_pkgname="organize"
pkgname="$_pkgname"
pkgver=3.3.0
pkgrel=1
pkgdesc='A command line utility to automate file organization tasks'
url='https://github.com/tfeldmann/organize'
license=('MIT')
arch=('any')
depends=(
'python'
)
makedepends=(
'python-build'
'python-installer'
'python-poetry'
'python-wheel'
)
_pkgsrc="$_pkgname-$pkgver"
_pkgext="tar.gz"
source=("$_pkgsrc.$_pkgext"::"$url/archive/refs/tags/v$pkgver.$_pkgext")
sha256sums=('0b78928cc934cc60801ddf69f4910f8499e86070a1e256bb319c6863c71f73ea')
build() {
cd "$_pkgsrc"
python -m build --no-isolation --wheel --skip-dependency-check
}
package() {
depends+=(
'docx2txt'
'python-arrow'
'python-jinja'
'python-natsort'
'python-pdfminer'
'python-platformdirs'
'python-pydantic'
'python-rich'
'python-send2trash'
'python-yaml'
## AUR
'python-docopt-ng'
'python-exifread'
'python-simplematch'
)
cd "$_pkgsrc"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|