rawtoaces
LOW
maintainer damian101
0 votes
scanned 2026-08-25 21:28:32.222906
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
3
pkgname=rawtoaces
4
pkgver=2.2.0
5
_dataver=1.1.0
6
pkgrel=1
7
pkgdesc='RAW to ACES utility for converting digital camera RAW files to ACES container files'
8
arch=(x86_64)
9
url=https://github.com/AcademySoftwareFoundation/rawtoaces
10
license=(Apache-2.0)
11
12
depends=(
13
ceres-solver
14
eigen
15
gcc-libs
16
glibc
17
lensfun
18
nanobind
19
nlohmann-json
20
openimageio
21
python
22
)
23
24
makedepends=(
25
cmake
26
ninja
27
pkgconf
28
)
29
30
optdepends=(
31
'perl-image-exiftool: for reading RAW image metadata via exiftool'
32
)
33
34
source=(
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
39
sha256sums=(
40
'dd4b53d83aaceb4a4ff97914b5bf1b820c929bd1a480d62c263d1849a8aa56dd'
41
'd84051305009e5a154062f837f62d432bc69f7ad9e220f3a57a056ddc9b8911f'
42
)
43
44
prepare() {
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
57
build() {
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
71
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-08-25 21:28:32 | Low | 1 |