Harry49 already answered to the question.
I am not standing up here to give another answer. My intervention is a comment, but too long to be edited in the comments section.
The analytical solving of the PDE with the specified boundary condition is especially interesting as shown below.
$$u_t+uu_x=-\alpha u \tag 1$$
The Charpit-Lagrange equations are :
$$\frac{dt}{1}=\frac{dx}{u}=\frac{du}{(-\alpha u)}$$
A first family of characteristic curves comes from $\frac{dx}{u}=\frac{du}{(-\alpha u)}$ :
$$u+\alpha x =c_1$$
A second family of characteristic curves comes from $\frac{dt}{1}=\frac{du}{(-\alpha u)}$ :
$$ue^{-\alpha t}=c_2$$
The general solution of the PDE Eq.$(1)$ expressed on the form of implicit equation is :
$$u+\alpha x=\Phi\left(ue^{-\alpha t}\right) \tag 2$$
where $\Phi$ is an arbitrary function (to be determined according to boundary condition).
Condition : $u(x,0)=f(x)$ with $f(x)$ a known (given) function.
$$f(x)+\alpha x=\Phi\left(f(x)e^{0}\right)=\Phi\left(f(x)\right)$$
Let $X=f(x)$ and $x=f^{-1}(X)$
$f^{-1}$ denotes the inverse function of $f$.
$$\Phi(X)=X+\alpha f^{-1}(X)$$
So, the function $\Phi$ is determined. We put it into Eq.$(2)$.
$$u+\alpha x=ue^{-\alpha t}+\alpha f^{-1}\left(ue^{-\alpha t}\right)$$
$$f^{-1}\left(ue^{-\alpha t}\right)=x+\frac{u}{\alpha}\left(1-e^{-\alpha t}\right)$$
$$ue^{-\alpha t}=f\left(x+\frac{u}{\alpha}\left(1-e^{-\alpha t}\right)\right) \tag 3$$
Eq.$(3)$ is the implicite form of the analytic solution of $u_t+uu_x+\alpha u=0$ with condition $u(x,0)=f(x)$.
The explicite form of $u(x,t)$ requires to solve Eq.$(3)$ for $u$. The possibility to do it analytically depends on the kind of function $f$.
Of course, this is only for information without answering to the OP question as mentioned at first place.