icsharpcode / AvaloniaILSpy

Avalonia-based .NET Decompiler (port of ILSpy)
1.48k stars 167 forks source link

AUR package? #9

Open 766F6964 opened 5 years ago

766F6964 commented 5 years ago

Can you add this project to the AUR? This would allow for easier installation via a package manager of choice.

jeffreye commented 5 years ago

@christophwille Could you do this?

christophwille commented 5 years ago

I have zero clue about Linux package managers. And I doubt that there would be many consumers at the moment to justify the effort.

chazanov commented 4 years ago

@jeffreye Can I build Avalonia under Mono?

I would be interested in creating a PKGBUILD (for AUR) since the bleeding-edge build for Ubuntu crashes at Arch.

jeffreye commented 4 years ago

@chazanov I haven't tried to build it under Mono. Feel free to make it compatible with Mono.

Necklaces commented 4 years ago

I've made an AUR package which can be found here: https://aur.archlinux.org/packages/avaloniailspy/

It is however pointing to my fork, and not the official repository. I will update it to point to here when #23 is fixed, since that is a prerequisite.

Another thing to note is that it pulls directly from git and builds using dotnet-sdk, and should probably have been called avaloniailspy-git, but oh well. The plan is to rewrite it to use stable sources or binaries if those are ever released.

Can be installed with an AUR helper, for example

Taza53 commented 3 years ago

The aur package seems to be not working.

Preparing... Cloning avaloniailspy build files... Checking avaloniailspy dependencies... Resolving dependencies... Checking inter-conflicts... Checking keyring... Checking integrity... Loading package files... Checking file conflicts... Checking available disc space... Installing libicns (0.8.1-7)... Installing netstandard-targeting-pack (3.1.8.sdk108-1)... Installing dotnet-host (3.1.8.sdk108-1)... Installing dotnet-targeting-pack (3.1.8.sdk108-1)... Installing dotnet-runtime (3.1.8.sdk108-1)... Installing dotnet-sdk (3.1.8.sdk108-1)... Running post-transaction hooks... Arming ConditionNeedsUpdate...

Building avaloniailspy... ==> Making package: avaloniailspy v5.0-7 (Sat 20 Feb 2021 22:04:21 CET) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Updating AvaloniaILSpy git repo... Fetching origin -> Found avaloniailspy.desktop -> Found 0001-Fix-49.patch ==> Validating source files with sha256sums... AvaloniaILSpy ... Skipped avaloniailspy.desktop ... Passed 0001-Fix-49.patch ... Skipped ==> Removing existing $srcdir/ directory... ==> Extracting sources... -> Creating working copy of AvaloniaILSpy git repo... Cloning into 'AvaloniaILSpy'... done. Switched to a new branch 'makepkg' ==> Starting prepare()... Submodule 'AvaloniaEdit' (https://github.com/AvaloniaUI/AvaloniaEdit.git) registered for path 'AvaloniaEdit' Cloning into '/var/tmp/pamac-build-user/avaloniailspy/src/AvaloniaILSpy/AvaloniaEdit'... Submodule path 'AvaloniaEdit': checked out 'd3916f7e2d9a06faae2ba4461fbca8ecb54340d4' Committer identity unknown

*** Please tell me who you are.

Run

git config --global user.email "you@example.com" git config --global user.name "Your Name"

to set your account's default identity. Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'user@pc.(none)') ==> ERROR: A failure occurred in prepare(). Aborting...

Taza53 commented 3 years ago

@Necklaces sorry to ping you hopefully you won't mind. The aur package is trying to do a commit. Hopefully did not bother you.

Necklaces commented 3 years ago

@Taza53 no worries, sorry for the late reply (though faster to ping me on AUR). Building from the RC2 tag (which arch/aur packages do for reproducibility) broke because of #49. It is fixed in the master branch, but hasn't been backported to the RC2 tag (not sure if that's even possible). I temporarily included the fix in #49 in the package, but I apply it using git am. It "worked for me tm", but I failed to predict it would fail if a user had not set up git. The error you are getting implies you have not set up git, and tells you exactly what to do to fix it, however I'm gonna see if I can find a better temporary fix.

Taza53 commented 3 years ago

Yeah, I set up git and it worked.