epics-pvxs
MEDIUM
maintainer craftingDragon7
0 votes
scanned 2026-09-27 15:19:08.759284
Why flagged
This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.
Triggered rules
Medium
Recently orphaned & re-adopted
orphaned_readopted
This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.
PKGBUILD
1
# Contributor: Rafael Silva <perigoso at riseup dot net>
2
3
pkgname='epics-pvxs'
4
pkgver=1.3.1
5
pkgrel=1
6
pkgdesc="PVA protocol client/server library and utilities"
7
arch=('any')
8
url="https://mdavidsaver.github.io/pvxs"
9
license=('custom')
10
depends=('epics-base' 'libevent')
11
makedepends=()
12
source=("https://github.com/mdavidsaver/pvxs/archive/refs/tags/$pkgver.tar.gz")
13
sha512sums=('6b1f477a1b8dbb90004baa62fb96d1a0f4375ecf0513000b9e206b0b9d49dffa3189e5337c14f4cb2b8b9e19b62ae8af3b57e8787cb41035ffd4d9987501e925')
14
15
prepare() {
16
cd "pvxs-$pkgver"
17
18
# set EPICS_BASE path
19
echo "EPICS_BASE=/usr/lib/epics" >'configure/RELEASE.local'
20
21
# install files to staging area
22
echo "INSTALL_LOCATION=${srcdir}/staging/usr/lib/epics" >'configure/CONFIG_SITE.local'
23
24
# final install location
25
echo 'FINAL_LOCATION=/usr/lib/epics' >>'configure/CONFIG_SITE.local'
26
27
# get the EPICS_HOST_ARCH and write it to a file
28
echo $(perl -CSD /usr/lib/epics/lib/perl/EpicsHostArch.pl) >"${srcdir}/EPICS_HOST_ARCH"
29
}
30
31
build() {
32
cd "pvxs-$pkgver"
33
34
# get the EPICS_HOST_ARCH and set it as an environment variable
35
export EPICS_HOST_ARCH=$(cat "${srcdir}/EPICS_HOST_ARCH")
36
37
# build and install to staging area, "-s" for silent build
38
make -s
39
}
40
41
package() {
42
cd "staging/usr/lib/epics"
43
44
# set EPICS_HOST_ARCH and EPICS_BASE as a local variable
45
local EPICS_HOST_ARCH=$(cat "${srcdir}/EPICS_HOST_ARCH")
46
local EPICS_BASE="${pkgdir}/usr/lib/epics"
47
48
# install library files and link them to the system library path
49
install -dm755 "${EPICS_BASE}/lib/${EPICS_HOST_ARCH}"
50
cp -P "lib/${EPICS_HOST_ARCH}"/*.so* "${EPICS_BASE}/lib/${EPICS_HOST_ARCH}"
51
for lib in "${EPICS_BASE}/lib/${EPICS_HOST_ARCH}"/*.so*; do
52
ln -sr "${lib}" "${pkgdir}/usr/lib/"
53
done
54
55
# install bin files and link non internal binaries to system path
56
install -dm755 "${EPICS_BASE}/bin/${EPICS_HOST_ARCH}" "${pkgdir}/usr/bin"
57
cp -P "bin/${EPICS_HOST_ARCH}"/* "${EPICS_BASE}/bin/${EPICS_HOST_ARCH}"
58
for bin in pvxcall pvxget pvxinfo pvxlist pvxmonitor pvxmshim pvxput pvxvct; do
59
ln -sr "${EPICS_BASE}/bin/${EPICS_HOST_ARCH}/${bin}" "${pkgdir}/usr/bin"
60
done
61
62
# install include files and epics-base links the parent include directory to the system path
63
install -dm644 "${pkgdir}/usr/include/epics/pvxs"
64
cp -r include/pvxs "${EPICS_BASE}/include"
65
66
# cfg, db, dbd are installe to EPICS_BASE and don't have appropriate system locations
67
# configure not installed as it overlaps with epics-base configures
68
install -dm755 "${pkgdir}/usr/share/epics"
69
cp -rt "${EPICS_BASE}" cfg db dbd
70
71
# install LICENSE file
72
install -Dm644 "${srcdir}/pvxs-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
73
74
# TODO: makepkg complains the package contains references to $srcdir
75
}
76
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-27 15:19:08 | Medium | 1 |
| 2026-06-18 16:11:54 | Clean | 0 |