include hack for libtorrentv1

libtorrentv1
binhex 6 months ago
parent 03a55252f6
commit 9cac964d42

@ -31,7 +31,7 @@ TARGETARCH="${2}"
source upd.sh source upd.sh
# define pacman packages # define pacman packages
pacman_packages="qbittorrent-nox python geoip" pacman_packages="python geoip"
# install compiled packages using pacman # install compiled packages using pacman
if [[ ! -z "${pacman_packages}" ]]; then if [[ ! -z "${pacman_packages}" ]]; then
@ -42,7 +42,7 @@ fi
#### ####
# define aur packages # define aur packages
aur_packages="" aur_packages="libtorrent-rasterbar-1"
# call aur install script (arch user repo) - note true required due to autodl-irssi error during install # call aur install script (arch user repo) - note true required due to autodl-irssi error during install
source aur.sh source aur.sh
@ -50,13 +50,22 @@ source aur.sh
# custom # custom
#### ####
# this is a (temporary?) hack to prevent the error '/usr/bin/qbittorrent-nox: # building package due to libtorrent-rasterbar v2 being included with aor package
# error while loading shared libraries: libQt5Core.so.5: cannot open shared
# object file: No such file or directory.' when running this container on # download PKGBUILD from aor
# hosts with older kernels (centos, mac os). alternative workaround to this cd /tmp && curl -L -o PKGBUILD https://raw.githubusercontent.com/archlinux/svntogit-community/packages/qbittorrent/trunk/PKGBUILD
# is for the user to upgrade the kernel on their host.
#pacman -S binutils --needed --noconfirm # edit package to use libtorrent-rasterbar-1 (installed earlier via aur.sh)
#strip --remove-section=.note.ABI-tag /usr/lib64/libQt5Core.so.5 sed -i -e 's~^depends=(libtorrent-rasterbar qt6-base)~depends=(libtorrent-rasterbar-1 qt6-base)~g' './PKGBUILD'
# strip out restriction to not allow make as user root, used during make of aur helper
sed -i -e 's~exit $E_ROOT~~g' "/usr/bin/makepkg"
# build package
makepkg --ignorearc --clean --syncdeps --skippgpcheck --noconfirm
# install package
pacman -U qbittorrent-nox*.tar.zst --noconfirm
# container perms # container perms
#### ####

Loading…
Cancel
Save