optimize-images

LOW
maintainer Dominiquini 1 votes scanned 2026-08-20 03:10:35.909995
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: Rafael Dominiquini <rafaeldominiquini at gmail dot com>
2
3pkgauthor="victordomingos"
4pkgname="optimize-images"
5pkgver=2.1.0
6pkgrel=1
7pkgdesc="A command-line interface (CLI) utility written in pure Python to help you reduce the file size of images"
8
9_pypi_package=${pkgname}
10_pypi_version=${pkgver}
11
12license=('MIT')
13arch=('any')
14
15_url_pypi="https://pypi.org/project/${pkgname}/"
16_url_github="https://github.com/${pkgauthor}/${pkgname}"
17url="${_url_github}"
18
19provides=("${_pypi_package}")
20conflicts=("python-${pkgname}")
21
22makedepends=('python-setuptools' 'python-wheel' 'python-build' 'python-installer' 'python-hatchling')
23depends=('python' 'python-pillow' 'python-watchdog')
24optdepends=('optimize-images-x')
25
26source=("https://files.pythonhosted.org/packages/source/${_pypi_package::1}/${_pypi_package//-/_}/${_pypi_package//-/_}-${_pypi_version}.tar.gz")
27# source=("${_pypi_package}-${_pypi_version}.tar.gz::${_url_github}/archive/refs/tags/v${pkgver}.tar.gz")
28sha256sums=('8c17211f80d00f762ef632532956fd8cae9440d2c3004b65cb4b0ce915a90fc5')
29
30build() {
31 cd "${srcdir}/${_pypi_package//-/_}-${_pypi_version}/" || exit
32
33 python -m build --wheel --no-isolation
34}
35
36package() {
37 cd "${srcdir}/${_pypi_package//-/_}-${_pypi_version}/" || exit
38
39 python -m installer --destdir="${pkgdir}" dist/*.whl
40
41 install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
42
43 install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
44}
45

Scan history

Scanned at (UTC)SeverityRules
2026-08-20 03:10:35 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion