rpl-2

MEDIUM
maintainer dreieck 0 votes scanned 2026-09-25 17:12:25.570634
View on AUR
Why flagged

One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).

Triggered rules

Medium source=() URL on a non-standard host source_untrusted_domain

One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).

  • PKGBUILD:113 "https://rpl2.systella.fr/download/rpl-${pkgver}.tar.bz2"
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 offending line(s) highlighted
1# Maintainer: dreieck (https://aur.archlinux.org/account/dreieck)
2
3## Release site to check for new versions: https://rpl2.systella.fr/telechargements.php
4
5_pkgname=rpl-2
6pkgname="${_pkgname}"
7pkgver=4.1.37
8pkgrel=3
9arch=(
10 'x86_64'
11 'i686'
12 'armv7h'
13 'armv6h'
14 'aarch64'
15 'pentium4'
16 'riscv64'
17)
18license=(
19 'CECILL-2.0'
20 'GPL-3.0-or-later'
21)
22pkgdesc="RPL/2 ('Reverse Polish Lisp 2'), a programming language designed for scientific computations, inspired by RPL from HP calculators like HP28S, HP48, and others."
23groups=()
24url='https://rpl2.systella.fr/anglais.php'
25depends=(
26 'glibc'
27 'libbz2.so' # bzip2
28 'libcrypto.so' # openssl
29 'libgcc_s.so' # libgcc
30 'libgfortran.so' # libgfortran
31 'liblzma.so' # xz
32 'libpq.so' # postgresql-libs
33 'libssl.so' # openssl
34 'libstdc++.so' # libstdc++
35 'libreadline.so' # readline
36 'libseccomp.so' # libseccomp
37 'libz.so' # zlib
38 'libzstd.so' # zstd
39 'lzlib'
40 'mariadb-libs'
41 #'giac'
42 #'libao.so'
43)
44optdepends=(
45 "bash: For 'rplcc', 'rpllink', 'mkrplso'."
46 'gnuplot: For advanced graphical capabilities.'
47 'texlive-bin: To use printer commands.'
48 'gv: To use printer commands (view output).'
49 "rpl-2-compiler: To compile RPL/2 code to standalone binary. ('rplc', See https://rpl2.systella.fr/produits.php#compilateur.)"
50 'vim: For vim support.'
51)
52makedepends=(
53 'autoconf'
54 'automake>=1.17'
55 'awk'
56 'make'
57 'gcc>=4.3'
58 'gcc-fortran>=4.3'
59 # 'xorg-util-macros' # Needed for 'autoreconf -fi' with '--enable-motif'.
60
61 'bzip2'
62 'expat'
63 'glibc'
64 'libgcc'
65 'libstdc++'
66 'libgomp'
67 'libgfortran'
68 'libseccomp'
69 'libxmu'
70 'libxt'
71 'lzlib'
72 'mariadb-libs'
73 'postgresql-libs'
74 'readline'
75 'xz'
76 'zlib'
77 'zstd'
78 # 'xbitmaps' # Needed with '--enable-motif'.
79 #'giac'
80 #'gnuplot'
81 #'libao'
82)
83checkdepends=()
84provides=(
85 "rpl-2-docs"
86 # Provided tools, see https://rpl2.systella.fr/documentation.php
87 "mkrplso=${pkgver}"
88 "rplcc=${pkgver}"
89 "rpllink=${pkgver}"
90 "rplpp=${pkgver}"
91 "rpltags=${pkgver}"
92 "rplawk"
93 "rplconvert"
94 "rplfile"
95 "rpliconv=${pkgver}"
96)
97conflicts=(
98 "rpl" # Actually, there just another package called 'rpl' which also installs '/usr/bin/rpl'. (https://aur.archlinux.org/packages/rpl | https://github.com/rrthomas/rpl)
99 "rpl-2-docs"
100 # Provided tools, see https://rpl2.systella.fr/documentation.php
101 "mkrplso"
102 "rplcc"
103 "rpllink"
104 "rplpp"
105 "rpltags"
106 "rplawk"
107 "rplconvert"
108 "rplfile"
109 "rpliconv"
110)
111replaces=()
112source=(
113 "https://rpl2.systella.fr/download/rpl-${pkgver}.tar.bz2"
114 "https://rpl2.systella.fr/download/reference_rpl_french.ps.bz2"
115)
116noextract=(
117 "reference_rpl_french.ps.bz2"
118)
119sha256sums=(
120 'd31be7d86aba19090994bfffe2f72cafb0417989076f08b559a5124d712a39e3' # rpl-${pkgver}.tar.bz2
121 'def1a0405b863fda0a07215a8eda63be56e21ba7b46d1f8c2b57df9b55465b48' # reference_rpl_french.ps.bz2
122)
123validpgpkeys=()
124options=('staticlibs')
125
126prepare() {
127 cd "${srcdir}/rpl-${pkgver}"
128
129 local _config_opts=(
130 --prefix=/usr
131 --enable-recursive
132 --enable-native
133 # --enable-rplcas
134 --disable-rplcas # Currently (version 4.1.37), fails to built 'rplcas/giac-2.0.0'.
135 --enable-optimization
136 --enable-tex
137 --enable-vim
138 --disable-embedded-gnuplot
139 --enable-gnuplot
140 # --enable-motif
141 --disable-motif # Currently Segmentation Faults when building hellomotif.
142 --disable-experimental # Don't use --enable-experimental. When author uses experimental code sections, code in theses sections is very very experimental.
143 --with-x
144 )
145
146 ./configure "${_config_opts[@]}"
147
148 ## Enable the following when building with `--enable-motif`:
149 #pushd tools/libXpm-3.5.16 2>/dev/null
150 #autoreconf -f -i
151 #popd 2>/dev/null
152}
153
154build() {
155 cd "${srcdir}/rpl-${pkgver}"
156
157 ## Silence some compiler warnings
158 local _NOWARNINGS _warning _CFLAGSADDITIONS
159 _NOWARNINGS=("unused-value" "unused-but-set-variable" "unused-label" "unused-function" "maybe-uninitialized" "misleading-indentation" "free-nonheap-object" "stringop-overread")
160 _CFLAGSADDITIONS=" -fno-strict-overflow -std=gnu17 -malign-double -funsigned-char" # From default 'CFLAGS' in 'Makefile'.
161 for _warning in "${_NOWARNINGS[@]}"; do
162 _CFLAGSADDITIONS+=" -Wno-${_warning} -Wno-error=${_warning}"
163 done
164 CFLAGS+="${_CFLAGSADDITIONS} -Wno-incompatible-pointer-types -Wno-pointer-sign" # Additions that are only valid for '$CFLAGS' but not '$CXXFLAGS' go here.
165 CXXFLAGS+="${_CFLAGSADDITIONS}"
166 export CFLAGS
167 export CXXFLAGS
168
169 FCFLAGS+=" -malign-double -fno-f2c" # From default 'FCFLAGS' in 'Makefile'.
170 FFLAGS+=" -malign-double -fno-f2c" # From default 'FFLAGS' in 'Makefile'.
171 export FCFLAGS
172 export FFLAGS
173
174 LDFLAGS+=" -pthread" # From default 'LDFLAGS' in 'Makefile'.
175 export LDFLAGS
176
177 make CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" FCFLAGS="${FCFLAGS}" FFLAGS="${FFLAGS}" LDFLAGS="${LDFLAGS}"
178}
179
180check() {
181 cd "${srcdir}/rpl-${pkgver}"
182
183 make check
184}
185
186package() {
187 cd "${srcdir}/rpl-${pkgver}"
188
189 make DESTDIR="${pkgdir}" install
190
191 install -Dvm644 -t "${pkgdir}/usr/share/doc/${_pkgname}" AUTHORS ChangeLog INSTALL LIMITATIONS NEWS README "${srcdir}/reference_rpl_french.ps.bz2"
192 install -Dvm644 -t "${pkgdir}/usr/share/doc/${_pkgname}/doc" doc/README
193 install -Dvm644 -t "${pkgdir}/usr/share/doc/${_pkgname}/examples" examples/*
194 install -Dvm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" COPYING Licence_CeCILL_V2-en.txt Licence_CeCILL_V2-fr.txt
195}
196

Scan history

Scanned at (UTC)SeverityRules
2026-09-25 17:12:25 Medium 2
2026-09-25 15:13:55 Low 3
2026-09-25 15:12:17 Medium 2

Report a package

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

0 / 4000
Your suggestion