qsl
Just run "sudo rm -rf /" .... just joking, don't do that
//EDIT
So I came back to edit this post to make the commands a little easier for you, you can do the following, download your drivers Lpr and Cups e.g to downloads and then open a terminal there.
https://support.brother.com/g/b/downloadlist.aspx?c=us&lang=en&prod=hl3140cw_us_eu&os=128
Cups and Lpr Driver Install / Unistall for Hl3140cw
# Create a directory for each of our drivers
mkdir Brother-Lpr
mkdir Brother-Cups
# Extract the drivers from their .deb packages to the newly created folders
ar -vx hl3140cwlpr-1.1.2-1.i386.deb --output=./Brother-Lpr
ar -vx hl3140cwcupswrapper-1.1.4-0.i386.deb --output=./Brother-Cups
# Move to the created Brother-Lpr directory
cd Brother-Lpr
# Extract the data.tar.gz
tar -xvzf data.tar.gz
# Copy over recursively the extracted /opt and usr/ to the root
sudo cp -r opt/ /
sudo cp -r usr/ /
# Move back to downloads
cd ..
# Move to the created Brother-Cups directory
cd Brother-Cups
# Extract the data.tar.gz
tar -xvzf data.tar.gz
# Copy over recursively the extracted /opt to the root
sudo cp -r opt/ /
to "Uninstall" aka remove these, you could do the following
# Remove just the hl31440cw directory, leaving any other Brother driver installed alone
sudo rm -r /opt/brother/hl3140cw
# Remove the printconfig for hl3140cw
sudo rm /usr/bin/brprinttconf_hl3140cw
//EDIT 2
Looking at the AUR https://aur.archlinux.org/packages/brother-hl3140cw for your printer driver it seems you will need the following packages:
cups
psutils
glibc-32bit
sudo eopkg install cups psutils glibc-32bit
//EDIT 3
To make even easier you could save the bash script below to "install-hl3140cw-drivers.sh" and run it
chmod +x install-hl3140cw-drivers.sh
sudo ./install-hl3140cw-drivers.sh
#!/usr/bin/env bash
# Install Brother-hl3140cw on Solus
set -euo pipefail
# Version + release of the .deb packages, change when updated
LPR_VERSION="1.1.2-1"
CUPS_VERSION="1.1.4-0"
# URLs for the .deb packages
LPR_URL="https://support.brother.com/g/b/files/dlf/dlf007068/hl3140cwlpr-${LPR_VERSION}.i386.deb"
CUPS_URL="https://download.brother.com/welcome/dlf007070/hl3140cwcupswrapper-${CUPS_VERSION}.i386.deb"
# Temporary working directory
WORKDIR="$(mktemp -d)"
cd "$WORKDIR"
# Install dependencies
echo "==> Installing dependencies…"
DEPS=(cups psutils a2ps ghostscript glibc)
if [[ "$(uname -m)" == "x86_64" ]]; then
DEPS+=(glibc-32bit)
fi
eopkg install --yes "${DEPS[@]}"
# Download Lpr and Cups drivers
echo "==> Downloading Brother packages…"
wget -qO hl3140cwlpr.deb "$LPR_URL"
wget -qO hl3140cwcupswrapper.deb "$CUPS_URL"
# Extract the drivers and data.tar.gz to root /
extract_deb() {
local debfile="$1"
ar x "$debfile" data.tar.gz
tar --numeric-owner -C / -xzf data.tar.gz
rm -f data.tar.gz control.tar.gz debian-binary
}
# Extraction process for Lpr driver
echo "==> Extracting LPR driver…"
extract_deb hl3140cwlpr.deb
# Extraction process for Cups wrapper
echo "==> Extracting CUPS wrapper…"
extract_deb hl3140cwcupswrapper.deb
# Reload cups
echo "==> Reloading CUPS to pick up new filters…"
systemctl restart cups
# Remove tmp directory
echo "==> Cleaning up…"
cd /
rm -rf "$WORKDIR"
echo "Drivers installed successfully!"