summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0ec1fc182896d12986bc98b27578c9d2503cfba6 (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
# Maintainer:
# Contributor: Florian Bruhin (The Compiler) <archlinux.org@the-compiler.org>

_pkgname="ddupes"
pkgname="$_pkgname"
pkgver=2.3
pkgrel=4
pkgdesc="Extends fdupes action to directories, includes ffdupes (fast fdupes)"
url="https://pietrobattiston.it/ddupes"
license=('GPL-3.0-only')
arch=('any')

depends=('python')
makedepends=(
  'python-build'
  'python-installer'
  'python-setuptools'
  'python-wheel'
)

_pkgsrc="$_pkgname-$pkgver"
_pkgext="tar.gz"
source=("$_pkgsrc.$_pkgext"::"https://pietrobattiston.it/_media/$_pkgname:$_pkgsrc.$_pkgext")
sha256sums=('5afe03c441c975c5e7b479a456746bb79699cc7cccd929747edd245895ee4a67')

prepare() {
  cd "$_pkgsrc"
  2to3 -w ddupes
  2to3 -w ffdupes
}

build() {
  cd "$_pkgsrc"
  python -m build --no-isolation --wheel
}

package() {
  cd "$_pkgsrc"
  python -m installer --destdir="$pkgdir" dist/*.whl
}