rawtoaces-git
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
pkgname=$_pkgname-git
5
pkgver=2.1.0.r47.ab25a36
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
git
27
ninja
28
pkgconf
29
)
30
31
optdepends=(
32
'perl-image-exiftool: for reading RAW image metadata via exiftool'
33
)
34
35
provides=($_pkgname)
36
conflicts=($_pkgname)
37
38
source=(
39
$_pkgname::git+$url.git
40
rawtoaces-data::git+https://github.com/AcademySoftwareFoundation/rawtoaces-data.git
41
)
42
43
sha256sums=(
44
SKIP
45
SKIP
46
)
47
48
pkgver() {
49
git -C $_pkgname describe --long --tags |
50
sed -E 's/^v//; s/-([^-]*)-g([^-]*)$/.r\1.\2/; s/-/./g'
51
}
52
53
prepare() {
54
# Fix installation path when pre-populating rawtoaces-data via FETCHCONTENT_SOURCE_DIR.
55
sed -i \
56
's|\${PROJECT_BINARY_DIR}/_deps/rawtoaces_data-src|\${rawtoaces_data_SOURCE_DIR}|g' \
57
$_pkgname/CMakeLists.txt
58
59
# Include the system data directory in search paths alongside /usr/local.
60
sed -i \
61
's|"/usr/local/share/rawtoaces/data"|\
62
"/usr/share/rawtoaces/data" + separator + "/usr/local/share/rawtoaces/data"|' \
63
$_pkgname/src/rawtoaces_util/image_converter.cpp
64
}
65
66
build() {
67
export CFLAGS+=" -ffile-prefix-map=$srcdir=."
68
export CXXFLAGS+=" -ffile-prefix-map=$srcdir=."
69
70
cmake -S $_pkgname -B build \
71
-DCMAKE_BUILD_TYPE=Release \
72
-DCMAKE_INSTALL_PREFIX=/usr \
73
-DFETCHCONTENT_SOURCE_DIR_RAWTOACES_DATA="$srcdir"/rawtoaces-data \
74
-DRTA_BUILD_TESTS=OFF \
75
-G Ninja
76
77
cmake --build build
78
}
79
80
package() {
81
DESTDIR="$pkgdir" cmake --install build
82
83
install -Dm644 $_pkgname/LICENSE \
84
-t "$pkgdir"/usr/share/licenses/$pkgname
85
86
# Move Python C extension module into Python site-packages directory.
87
local _site_packages
88
_site_packages="$(python -c 'import site; print(site.getsitepackages()[0])')"
89
90
mkdir -p $pkgdir"$_site_packages"
91
92
find "$pkgdir"/usr/lib \
93
-maxdepth 1 \
94
-name 'rawtoaces*.so' \
95
-exec mv -t "$pkgdir$_site_packages" {} +
96
}
97
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-25 21:28:32 | Low | 1 |