You are not logged in.

#1 2023-07-10 21:44:02

linuxscoop
Member
Registered: 2022-08-09
Posts: 26

[REQUEST] lasim

The request is for someone to add it to the AUR. And improve it if necessary.

pkgname=lasim
pkgver=0.1.1
pkgrel=1
pkgdesc="Move your Lemmy settings from one account to another"
arch=('x86_64')
url="https://github.com/CMahaff/lasim"
license=('MIT')
depends=('rust' 'cargo')
makedepends=('git')
source=("$pkgname-$pkgver.tar.gz::https://github.com/CMahaff/lasim/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('SKIP')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  cargo build --release
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
  install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

Last edited by linuxscoop (2023-07-10 21:44:46)

Offline

#2 2023-07-10 22:03:25

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,361
Website

Re: [REQUEST] lasim

You can submit it yourself when it is ready.  But some notes first:

1. Don't skip the checksum
2. Is 'cargo' really a run-time dependency?  Typically it would be in makedepends.  (I have the same curiosity about rust).
3. I believe this should have a prepare function as outlined in the wiki to run `cargo fetch ...`
4. The wiki also advises setting two environment variables and passing two additional flags to cargo build - if there is a reason that this advice should not be followed for this package, it'd be good to note that in some comments.

EDIT: I just started building this, but from the compilation steps going by (referencing GUI libraries) I find it hard to believe this wouldn't have any actual runtime dependencies.  These need to be listed.  (Side note, I'm not sure why a program to transfer data from one server to another seems to need to build an entire operating system to do so - it's at 2.5GB so far).

EDIT 2: dependencies should include the following: gcc-libs glibc openssl qt6-base

Last edited by Trilby (2023-07-10 22:24:26)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB