rawtoaces

LOW
maintainer damian101 0 votes scanned 2026-08-25 21:28:32.222906
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: Damian Höster <damian.hoester@posteo.de>
2
3pkgname=rawtoaces
4pkgver=2.2.0
5_dataver=1.1.0
6pkgrel=1
7pkgdesc='RAW to ACES utility for converting digital camera RAW files to ACES container files'
8arch=(x86_64)
9url=https://github.com/AcademySoftwareFoundation/rawtoaces
10license=(Apache-2.0)
11
12depends=(
13 ceres-solver
14 eigen
15 gcc-libs
16 glibc
17 lensfun
18 nanobind
19 nlohmann-json
20 openimageio
21 python
22)
23
24makedepends=(
25 cmake
26 ninja
27 pkgconf
28)
29
30optdepends=(
31 'perl-image-exiftool: for reading RAW image metadata via exiftool'
32)
33
34source=(
35 $pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz
36 rawtoaces-data-$_dataver.tar.gz::$url-data/archive/refs/tags/v$_dataver.tar.gz
37)
38
39sha256sums=(
40 'dd4b53d83aaceb4a4ff97914b5bf1b820c929bd1a480d62c263d1849a8aa56dd'
41 'd84051305009e5a154062f837f62d432bc69f7ad9e220f3a57a056ddc9b8911f'
42)
43
44prepare() {
45 # Fix installation path when pre-populating rawtoaces-data via FETCHCONTENT_SOURCE_DIR.
46 sed -i \
47 's|\${PROJECT_BINARY_DIR}/_deps/rawtoaces_data-src|\${rawtoaces_data_SOURCE_DIR}|g' \
48 $pkgname-$pkgver/CMakeLists.txt
49
50 # Include the system data directory in search paths alongside /usr/local.
51 sed -i \
52 's|"/usr/local/share/rawtoaces/data"|\
53"/usr/share/rawtoaces/data" + separator + "/usr/local/share/rawtoaces/data"|' \
54 $pkgname-$pkgver/src/rawtoaces_util/image_converter.cpp
55}
56
57build() {
58 export CFLAGS+=" -ffile-prefix-map=$srcdir=."
59 export CXXFLAGS+=" -ffile-prefix-map=$srcdir=."
60
61 cmake -S $pkgname-$pkgver -B build \
62 -DCMAKE_BUILD_TYPE=Release \
63 -DCMAKE_INSTALL_PREFIX=/usr \
64 -DFETCHCONTENT_SOURCE_DIR_RAWTOACES_DATA="$srcdir"/rawtoaces-data-$_dataver \
65 -DRTA_BUILD_TESTS=OFF \
66 -G Ninja
67
68 cmake --build build
69}
70
71package() {
72 DESTDIR="$pkgdir" cmake --install build
73
74 install -Dm644 $pkgname-$pkgver/LICENSE \
75 -t "$pkgdir"/usr/share/licenses/$pkgname
76
77 # Move Python C extension module into Python site-packages directory.
78 local _site_packages
79 _site_packages="$(python -c 'import site; print(site.getsitepackages()[0])')"
80
81 mkdir -p "$pkgdir$_site_packages"
82
83 find "$pkgdir"/usr/lib \
84 -maxdepth 1 \
85 -name 'rawtoaces*.so' \
86 -exec mv -t "$pkgdir$_site_packages" {} +
87}
88

Scan history

Scanned at (UTC)SeverityRules
2026-08-25 21:28:32 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