-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
74 lines (63 loc) · 2.28 KB
/
PKGBUILD
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/bin/bash
# Disable various shellcheck rules that produce false positives in this file.
# Repository rules should be added to the .shellcheckrc file located in the
# repository root directory, see https://github.com/koalaman/shellcheck/wiki
# and https://archiv8.github.io for further information.
# shellcheck disable=SC2034,SC2154
# [ToDo]: Add files: User documentation
# [ToDo]: Add files: Tooling
# [FixMe]: Namcap warnings and errors
# Maintainer: Ross Clark <archiv8@artisteducator.com>
# Contributor: Ross Clark <archiv8@artisteducator.com>
pkgname=dupeguru
pkgver=4.2.1
pkgrel=1
pkgdesc="Find duplicate files with various contents, using perceptual diff for pictures"
arch=("any")
url="https://dupeguru.voltaicideas.net/"
license=("GPL3")
depends=(
# Official Arch Linux repositories
"libxkbcommon-x11"
"python"
"python-mutagen"
"python-pyqt5"
"python-send2trash"
# Archiv8 on github
"python-hsaudiotag3k"
"python-polib"
)
makedepends=(
# Official Arch Linux repositories
"python-distro"
"python-sphinx"
)
source=( ${pkgname}-${pkgver}.tar.gz::https://github.com/arsenetar/${pkgname}/archive/refs/tags/${pkgver}.tar.gz )
sha512sums=("7f2a5975a61832828af788022981654b501416dfaf90b9c4294f5f809c75d07fb9503b7086170d44901aefd36591f0d7ed5d75d7f96ebe35107c383970b27408")
provides=("dupeguru")
conflicts=("dupeguru-git" "dupeguru-se" "dupeguru-pe" "dupeguru-me")
build() {
cd "${pkgname}-${pkgver}"
# Instead of doing the full ./bootstrap.sh
python3 -m venv env --system-site-packages
source env/bin/activate
python3 -m pip install --no-index --find-links=deps -r requirements.txt
msg "Starting build..."
python build.py --clean
}
package() {
cd "${pkgname}-${pkgver}"
cp -R "help" "build"
cp -R "locale" "build"
python package.py --arch-pkg
cd "build/${pkgname}-arch"
mkdir -p "${pkgdir}/usr/share/applications"
mv ${pkgname}.desktop "${pkgdir}/usr/share/applications"
mkdir -p "${pkgdir}/usr/share/${pkgname}"
cp -a -- * "${pkgdir}/usr/share/${pkgname}/"
chmod a+x "${pkgdir}/usr/share/${pkgname}/run.py"
mkdir -p "${pkgdir}/usr/share/pixmaps"
ln -s "/usr/share/${pkgname}/dgse_logo_128.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
mkdir -p "${pkgdir}/usr/bin"
ln -s ../share/${pkgname}/run.py "${pkgdir}/usr/bin/${pkgname}"
}