You are not logged in.

#1 2022-08-20 19:34:03

Morta
Member
Registered: 2019-07-07
Posts: 655

Displaylink

Hi

How I add with

yay -S displaylink --editmenu

this diff to PKGBUILD?

7,9c7,9
< pkgver=5.6
< _releasedate=2022-05
< _pkgfullver=5.6.0-59.176
---
> pkgver=5.6.1
> _releasedate=2022-08
> _pkgfullver=5.6.1-59.184
18c18
< changelog="displaylink-release-notes-${pkgver}.txt"
---
> #changelog="displaylink-release-notes-${pkgver}.txt"
20c20
<         displaylink-release-notes-${pkgver}.txt
---
> #        displaylink-release-notes-${pkgver}.txt
24c24
<       displaylink.service 
---
>         displaylink.service 
26,27c26,27
< sha256sums=('ca15c82af195f50acc670a6b00b29d6709731e095113619330d45692f5243aed'
<             '529d8344f5cc1117388ddf2215c744baa920c7df4dbf40c3e5ddf2b4e82ba8e3'
---
> sha256sums=('89279748a9e276073ddfff7e949f2b92e30dc19f29a34c40ffcd3356c6d730c2'
> #            '1aae2005e7719e91179ed52ba85b11b35120c05116c94c4aa384394c4f6e8043'

If a place in top or bottom of PKGBUILD it's doesn't work and I can't understand how I add this diff in the diff console... Can anyone help me?

Offline

#2 2022-08-20 19:44:01

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: Displaylink

1. Don't use yay?
2. https://github.com/Jguer/yay#readme - look for editmenu
3. Don't use yay.

Offline

#3 2022-08-20 19:48:22

progandy
Member
Registered: 2012-05-17
Posts: 5,193

Re: Displaylink

If yay does allow editing the PKGBUILD, then you could do that. Remove lines starting with < and replace them with lines starting with >

Otherwise: https://wiki.archlinux.org/title/Aur#In … g_packages
-fetch the PKGBUILD

patch PKGBUILD file-with-patch-text.patch

- use makepkg


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#4 2022-08-20 20:04:04

Morta
Member
Registered: 2019-07-07
Posts: 655

Re: Displaylink

seth wrote:

1. Don't use yay?
2. https://github.com/Jguer/yay#readme - look for editmenu
3. Don't use yay.

1.Ok what have I to use instead of yay?
2. I'm absolutely stupid... but I didn't find editmenu topic....Or How I add the patch on the PKGBUILD if with --editmenu yay ask me to edit PKGBUILD...
3. Ok,sir!



I got it with patch  PKGBUILD 1.diff a new  PKGBUILD and compiled successfully with makepkg.

But the second question is still alive

Last edited by Morta (2022-08-20 20:05:20)

Offline

#5 2022-08-20 20:06:35

Morta
Member
Registered: 2019-07-07
Posts: 655

Re: Displaylink

progandy wrote:

If yay does allow editing the PKGBUILD, then you could do that. Remove lines starting with < and replace them with lines starting with >

Otherwise: https://wiki.archlinux.org/title/Aur#In … g_packages
-fetch the PKGBUILD

patch PKGBUILD file-with-patch-text.patch

- use makepkg

Is there no automatic way to apply this patch without handworks?

Offline

#6 2022-08-20 20:18:03

Morta
Member
Registered: 2019-07-07
Posts: 655

Re: Displaylink

24c24
<       displaylink.service 
---
>         displaylink.service 

This lines are obsolet because identically?

Offline

#7 2022-08-20 20:35:00

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: Displaylink

Whitespace difference, and

the readme wrote:

Yay is not asking me to edit PKGBUILDS, and I don't like the diff menu! What can I do?

yay --editmenu --nodiffmenu --save

Your browser has a search function, moust likely ctrl+f

Offline

#8 2022-08-20 20:41:35

Morta
Member
Registered: 2019-07-07
Posts: 655

Re: Displaylink

seth wrote:

Whitespace difference, and

the readme wrote:

Yay is not asking me to edit PKGBUILDS, and I don't like the diff menu! What can I do?

yay --editmenu --nodiffmenu --save

Your browser has a search function, moust likely ctrl+f

This line I found but there is no guide how apply the patch automatically. Is there any way or only by hand?

What you recommend instead of yay?

Offline

#9 2022-08-20 20:47:14

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: Displaylink

I've no idea what yay allows you to do at this point (you can perhaps still patch the PKGBUILD instead of saving it from the editor if yay opens one) and makepkg, obviously.
AUR helpers are just that - "helpers". If they're not helpful for a task, the smart choice is to not use them.

Offline

#10 2022-08-20 22:17:37

a821
Member
Registered: 2012-10-31
Posts: 381

Re: Displaylink

Morta wrote:
24c24
<       displaylink.service 
---
>         displaylink.service 

This lines are obsolet because identically?

just remove those four lines and run command from #3

Offline

Board footer

Powered by FluxBB