Here’s the output of me manually doing this line by line in the terminal.
[aces@aces-desktop src]$ pwd
/var/tmp/pamac-build-aces/displaylink/src
[aces@aces-desktop src]$ chmod +x displaylink-driver-$pkgver.run
chmod: cannot access 'displaylink-driver-.run': No such file or directory
[aces@aces-desktop src]$ chmod +x displaylink-driver-5.3.1.34.run
[aces@aces-desktop src]$ ls -l
total 13808
lrwxrwxrwx 1 aces aces 58 Nov 27 06:39 99-displaylink.rules -> /var/tmp/pamac-build-aces/displaylink
/99-displaylink.rules
-rwxr-xr-x 1 aces aces 14134122 May 5 2020 displaylink-driver-5.3.1.34.run
lrwxrwxrwx 1 aces aces 69 Nov 27 06:39 displaylink-driver-5.3.1.34.zip -> /var/tmp/pamac-build-aces/
displaylink/displaylink-driver-5.3.1.34.zip
lrwxrwxrwx 1 aces aces 57 Nov 27 06:39 displaylink.service -> /var/tmp/pamac-build-aces/displaylink/
displaylink.service
lrwxrwxrwx 1 aces aces 58 Nov 27 06:39 displaylink-sleep.sh -> /var/tmp/pamac-build-aces/displaylink
/displaylink-sleep.sh
lrwxrwxrwx 1 aces aces 45 Nov 27 06:39 udev.sh -> /var/tmp/pamac-build-aces/displaylink/udev.sh
[aces@aces-desktop src]$ sudo ./displaylink-driver-5.3.1.34.run
[sudo] password for aces:
[aces@aces-desktop src]$ sudo ./displaylink-driver-5.3.1.34.run --target displaylink-driver-5.3.1.34 -- no
exec
[sudo] password for aces:
Creating directory displaylink-driver-5.3.1.34
Verifying archive integrity... 100% All good.
Uncompressing DisplayLink Linux Driver 5.3.1.34 100%
DisplayLink Linux Software 5.3.1.34 install script called: noexec
Distribution discovered: "Manjaro ARM Linux"
Installs DisplayLink Linux Software, version 5.3.1.34.
Usage: ./displaylink-installer.sh [ install | uninstall ]
The default operation is install.
If unknown argument is given, a quick compatibility check is performed but nothing is installed.
[aces@aces-desktop src]$ cd displaylink-driver-5.3.1.34
[aces@aces-desktop displaylink-driver-5.3.1.34]$ ls
3rd_party_licences.txt ella-dock-release.spkg LICENSE x64-ubuntu-1604
arm-linux-gnueabihf evdi.tar.gz ridge-dock-release.spkg x86-ubuntu-1604
displaylink-installer.sh firefly-monitor-release.spkg udev-installer.sh
Now, I’m stuck because if I add this line to the if statement, there’s no ‘aarch64-ubuntu-1604’ to install.
elif [ “$CARCH” == “aarch64” ]; then
ARCH=“aarch64”
Here’s the section that I’m stuck with:
if [ “$CARCH” == “i686” ]; then
ARCH=“x86”
elif [ “$CARCH” == “x86_64” ]; then
ARCH=“x64”
fi
ARCH+="-ubuntu-1604"
echo “Installing DisplayLink Manager $ARCH”
install -D -m755 $ARCH/DisplayLinkManager $COREDIR/DisplayLinkManager
echo “Installing firmware packages”
install -D -m644 *.spkg $COREDIR
echo “Installing license file”
install -D -m644 LICENSE “${pkgdir}/usr/share/licenses/${pkgname}/LICENSE”
}