-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathopus-mini.sh
More file actions
41 lines (33 loc) · 1020 Bytes
/
Copy pathopus-mini.sh
File metadata and controls
41 lines (33 loc) · 1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh
set -e
get-pkgbuild
cd "$BUILD_DIR"
# debloat package, remove features that make the lib 5 MiB
sed -i \
-e '/-D deep-plc=enabled/d' \
-e '/-D dred=enabled/d' \
-e '/-D osce=enabled/d' \
"$PKGBUILD"
# skip tests since they take too long
sed -i -e 's|meson test -C build|echo "skipped" #meson test -C build|' "$PKGBUILD"
# the ported arches have no intrinsics or rtcd support in opus meson.build
case "$ARCH" in
'x86_64'|'aarch64') : ;;
*)
sed -i -e 's|arch-meson opus build|arch-meson opus build -D intrinsics=disabled -D rtcd=disabled|' "$PKGBUILD"
;;
esac
cat "$PKGBUILD"
# Do not build if version does not match with upstream
if check-upstream-version; then
makepkg -fs --noconfirm --skippgpcheck
else
exit 0
fi
ls -la
rm -fv ./*-docs-*.pkg.tar.* *-debug-*.pkg.tar.*
mv -v ./"$PACKAGE"-*.pkg.tar.zst ../"$PACKAGE"-mini-"$ARCH".pkg.tar.zst
cd ..
# keep older name to not break existing CIs
cp -v ./"$PACKAGE"-mini-"$ARCH".pkg.tar.zst ./"$PACKAGE"-nano-"$ARCH".pkg.tar.zst
echo "All done!"