nik012003 / ripdrag

Drag and Drop utilty written in Rust and GTK4
GNU General Public License v3.0
496 stars 17 forks source link

Arch Linux AUR package #18

Open Fabillotic opened 1 year ago

Fabillotic commented 1 year ago

I submitted ripdrag as an AUR package and plan on maintaining it in the future.

If anybody has recommendations on how to improve the PKGBUILD please notify me! :)

https://aur.archlinux.org/packages/ripdrag-git

edit: changed to new url

nik012003 commented 1 year ago

Thank you! I added it to the readme 👍 I will leave this issue open in order for other people to help with packaging on arch

RoryNesbitt commented 1 year ago

@Fabillotic the aur package fails to install at the build stage, but if you remove --frozen from the cargo command it will work. I don't know if --frozen is otherwise useful but removing it worked for me

Fabillotic commented 1 year ago

@RoryNesbitt that's weird... Does it work when adding this function to the PKGBUILD?

prepare() {
    cd "$pkgname-$pkgver"
    export RUSTUP_TOOLCHAIN=stable
    cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
RoryNesbitt commented 1 year ago

Now that it's been installed the regular PKGBUILD works. I'll update later when I'm on my laptop

Fabillotic commented 1 year ago

Seems like an issue with cargo needing to download dependencies

RoryNesbitt commented 1 year ago

yes, I don't have the exact error now but it was to do with installing clap as a dependency

Fabillotic commented 1 year ago

should now work with ripdrag 0.2.1-2

RoryNesbitt commented 1 year ago

tried now that I'm on my laptop and yeah, installed without issue

pbosab commented 1 year ago

should now work with ripdrag 0.2.1-2

you should remove ripdrag -V from

check() {
    cd "$pkgname-$pkgver"
    ./target/release/ripdrag -V
}

otherwise you cannot update it if not in a graphical environment.

==> Starting check()...

(ripdrag:6189): Gdk-WARNING **: 10:36:42.854: No such backend: *

(ripdrag:6189): Gtk-WARNING **: 10:36:42.854: Failed to open display
==> ERROR: A failure occurred in check().
    Aborting...
 -> error making: ripdrag-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
ripdrag - exit status 4

@nik012003 issue? or to-do?


$ ripdrag --help

(ripdrag:13276): Gdk-WARNING **: 10:43:05.957: No such backend: *

(ripdrag:13276): Gtk-WARNING **: 10:43:05.957: Failed to open display
nik012003 commented 1 year ago

Oops, my bad. Should be an easy fix. Will fix ASAP.

On July 26, 2023 10:47:12 AM GMT+02:00, Marco @.***> wrote:

should now work with ripdrag 0.2.1-2

you should remove ripdrag -V from

check() {
  cd "$pkgname-$pkgver"
  ./target/release/ripdrag -V
}

otherwise you cannot update it if not in a graphical environment.

==> Starting check()...

(ripdrag:6189): Gdk-WARNING **: 10:36:42.854: No such backend: *

(ripdrag:6189): Gtk-WARNING **: 10:36:42.854: Failed to open display
==> ERROR: A failure occurred in check().
   Aborting...
-> error making: ripdrag-exit status 4
-> Failed to install the following packages. Manual intervention is required:
ripdrag - exit status 4

@nik012003 issue? or to-do?


$ ripdrag --help

(ripdrag:13276): Gdk-WARNING **: 10:43:05.957: No such backend: *

(ripdrag:13276): Gtk-WARNING **: 10:43:05.957: Failed to open display

-- Reply to this email directly or view it on GitHub: https://github.com/nik012003/ripdrag/issues/18#issuecomment-1651252178 You are receiving this because you were mentioned.

Message ID: @.***>

nik012003 commented 1 year ago

should now work with ripdrag 0.2.1-2

you should remove ripdrag -V from

check() {
  cd "$pkgname-$pkgver"
  ./target/release/ripdrag -V
}

otherwise you cannot update it if not in a graphical environment.

==> Starting check()...

(ripdrag:6189): Gdk-WARNING **: 10:36:42.854: No such backend: *

(ripdrag:6189): Gtk-WARNING **: 10:36:42.854: Failed to open display
==> ERROR: A failure occurred in check().
    Aborting...
 -> error making: ripdrag-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
ripdrag - exit status 4

@nik012003 issue? or to-do?


$ ripdrag --help

(ripdrag:13276): Gdk-WARNING **: 10:43:05.957: No such backend: *

(ripdrag:13276): Gtk-WARNING **: 10:43:05.957: Failed to open display

Thanks, fixed in v0.3.2

pbosab commented 1 year ago

Thanks, fixed in v0.3.2

That was fast, thanks.

@Fabillotic so going back to my first reply: removing the ripdrag -V is not needed anymore... anyway i'm not a developer, but i think it's better to make a -git pkgbuild instead of one based on releases in an early development stage, or u'll end up editing it everytime and getting marked out of date everyday.

Fabillotic commented 1 year ago

Updated to v0.3.2, looking to make -git tracking package instead

Fabillotic commented 1 year ago

Important update

The new AUR package is now ripdrag-git instead of ripdrag

I have made a request to merge the old package into the new one. As the name implies, ripdrag-git will now track this Github repository.

Fabillotic commented 1 year ago

@pbosab thank's for the advice

Deshdeepak1 commented 1 year ago

Please provide a pre- compiled binary.

Fabillotic commented 1 year ago

Please provide a pre- compiled binary.

Sorry but I agree with @pbosab on this way of packaging. A -git tracking package is more appropriate at this stage of development. It also shouldn't be an issue building the package although it may take some time. If you have any issues building the package, please let me know.