You are not logged in.
I'd like to start by mentioning that there's already a pkg in the AUR called rars, but it has been orphaned: https://aur.archlinux.org/packages/rars.
The source repo located at https://github.com/TheThirdOne/rars has been inactive for 2 years, an active fork with several improvements has been made at https://github.com/rarsm/rars.
I have tried making a PKGBUILD for the proposed package, but I need some advice.
The `rars.desktop` and `rars.sh` should be edited accordingly (as to avoid conflict with the current rars pkg).
# This shall become rarsm
pkgname=rars
pkgver=1.7
pkgrel=1
pkgdesc="RARSM - Improved RISC-V Assembler and Runtime Simulator"
arch=('any')
url="https://github.com/privat/rars"
license=('MIT')
depends=('java-runtime>=8')
source=("https://github.com/privat/rars/releases/download/v$pkgver/$pkgname-${pkgver}.jar"
"[url]https://raw.githubusercontent.com/privat/$pkgname/v$pkgver/src/images/RISC-V.png[/url]"
"[url]https://raw.githubusercontent.com/privat/$pkgname/v$pkgver/LICENSE[/url]"
"rars.sh"
"rars.desktop")
noextract=("$pkgname-${pkgver}.jar")
sha256sums=('e12060d9683e6cf50efec8900aa9acca2a86838967af8c63f916a66018b884a4'
'3d2b4769c7935682062f2cc718a1482c098ecf6fbbd2a6781b688047c6085128'
'2203b1bfbc635b254845fed798e7f35265d15bf1dd276715ff545c239717147b'
'ab5b088335e5f189eaffa3399e764d85ad5069bb266a68a5640d2732504c5b56'
'e380d42d35d37cef1e802ad6fca9fdc7e9e6fbebfe9cc04f57d69536559ae7fb')
package() {
install -Dm644 "$pkgname-${pkgver}.jar" "$pkgdir/usr/share/java/$pkgname/$pkgname.jar"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm755 rars.sh "$pkgdir/usr/bin/$pkgname"
install -Dm644 rars.desktop -t "$pkgdir/usr/share/applications"
install -Dm644 RISC-V.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
}
First of all, the package name shall be `rarsm` (it's in the repo name after all), but this would break the ability of using `$pkgname` since the new repo kept the files named `rars`.
I am not sure on whether I could actively maintain the package. So far there's only one release, ideally I'd like a fool proof automated way of handling new releases.
If anyone more experienced could handle this I'd gladly appreciate their support.
Last edited by Big-Iron (Yesterday 22:08:14)
Offline
You are confusing things for yourself "rarsm" is the name of the owner of the repo, not the name of the package, the package / repo is still called rars
Offline
Is it not an issue for the package to keep the same name on the AUR?
I was under the impression this would cause a conflict.
Offline
you can change the name of your AUR package to something close (rarsm would be okay) and still keep the PKGBUILD intact. you would just have to add the provides and conflicts field to reflect "rars"
Offline
Many thanks, I will try and implement this when I get around to it, hopefully everything goes smooth.
Offline
Looks like it worked, pkg is up and running at https://aur.archlinux.org/packages/rarsm.
Had to fiddle with a helper var to use the original pkg name and also the new one, then fixed the `.sh` and `.desktop` to point to the updated names.
A pleasant learning experience, I hope some users will appreciate this.
Offline