Raspirus / raspirus

A user- and resources-friendly rules-based malware scanner
https://raspirus.deno.dev
GNU General Public License v3.0
133 stars 11 forks source link

Arch build is broken #887

Open Benji377 opened 3 hours ago

Benji377 commented 3 hours ago

Describe the bug It seems like the PKGBUILD file is broken. It is not possible to install Raspirus with the current instructions.

To Reproduce Simply use yay to install the AUR package

Expected behavior It should just install

Additional context Error message provided as comment from the user PupFromLosAndes:

 ==> Starting prepare()
 error: could not find 'Cargo.toml' in '/home/<user>/.cache/yay/raspirus/src' 
 or any parent directory
 ==> ERROR: Failure in prepare()
 Cancelling...
 error compiling: raspirus-exit status 4
Benji377 commented 3 hours ago

I think the issue might be because we are not changing the directory into the working one. So when manually following the steps, if I extract the tar file, I am not directly in the root folder, but actually there is another folder named raspirus-2.0.0 and inside that folder are the files we need. So probably what we need is just to add this line: cd $pkgname-$pkgver

The question is, in which step? Is the prepare() step enough? Will have to investigate. I unfortunately do not have an Arch OS to test this on