You are not logged in.

#1 2021-10-22 17:20:47

an0nsquest
Member
Registered: 2021-10-22
Posts: 18

[SOLVED] question about offline installation of wine using pacman

I would like to download the latest development version of wine 6.19 / 6.20. After I download it, is it sufficient to run:

pacman -U /path/to/file/packagename.tar.xz?

Or would I have to build the package? If so, how can I do that?

Last edited by an0nsquest (2021-10-29 20:58:31)

Offline

#2 2021-10-22 17:52:14

loqs
Member
Registered: 2014-03-06
Posts: 18,996

Re: [SOLVED] question about offline installation of wine using pacman

You would need to build a package from the source tarball.  See Arch_Build_System.

Offline

#3 2021-10-22 17:58:21

an0nsquest
Member
Registered: 2021-10-22
Posts: 18

Re: [SOLVED] question about offline installation of wine using pacman

loqs wrote:

You would need to build a package from the source tarball.  See Arch_Build_System.

Thanks
so go inside the source directory, then makepkg, and then run the pacman -U ?

Offline

#4 2021-10-22 18:04:28

loqs
Member
Registered: 2014-03-06
Posts: 18,996

Re: [SOLVED] question about offline installation of wine using pacman

You need to obtain the PKGBUILD.  Adjust the PKGBUILD for the version of wine you want to build.  Then you run makepkg in the same directory as the PKGBUILD that will download the tarball if it is not already present and extract it e.t.c..

Offline

#5 2021-10-22 18:08:35

an0nsquest
Member
Registered: 2021-10-22
Posts: 18

Re: [SOLVED] question about offline installation of wine using pacman

loqs wrote:

You need to obtain the PKGBUILD.  Adjust the PKGBUILD for the version of wine you want to build.  Then you run makepkg in the same directory as the PKGBUILD that will download the tarball if it is not already present and extract it e.t.c..

sorry I'm still confused.
I'm downloading the source from the official mirror here
https://dl.winehq.org/wine/source/6.x/

I downloaded and unziped it, but I did not find any PKGBUILD file inside

Offline

#6 2021-10-22 18:13:23

loqs
Member
Registered: 2014-03-06
Posts: 18,996

Re: [SOLVED] question about offline installation of wine using pacman

Did you read the link I previously posted.  Particularity the section Arch_Build_System#Retrieve_PKGBUILD_source_using_Git?
Alternative using git directly:

git clone https://github.com/archlinux/svntogit-community.git --single-branch --branch "packages/wine" wine
cd wine/trunk/

Edit PKGBUILD here to change pkgver and sha512sums.  git diff of changes I made

git diff
diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD
index d0ec5a5..96c52a1 100644
--- a/trunk/PKGBUILD
+++ b/trunk/PKGBUILD
@@ -4,7 +4,7 @@
 # Contributor: Giovanni Scafora <giovanni@archlinux.org>
 
 pkgname=wine
-pkgver=6.18
+pkgver=6.19
 pkgrel=1
 
 _pkgbasever=${pkgver/rc/-rc}
@@ -12,7 +12,7 @@ _pkgbasever=${pkgver/rc/-rc}
 source=(https://dl.winehq.org/wine/source/6.x/$pkgname-$_pkgbasever.tar.xz{,.sign}
         30-win32-aliases.conf
         wine-binfmt.conf)
-sha512sums=('d8f54f8fbb61b4af2a6f97328d33b0389ab0fb6a9dac97b2832af3d911a9f23c08653f40ec77f7c0eedd694c4a1c1228fe9dd4d859d8b3d7419e21847de7bcfe'
+sha512sums=('6d58bca9a4b8ed94f34a532da6403341f325a30d8e1b78997de009ecaafad655d15733823d7d1c8bd906efc568a649f8b7bee5c10f2e271e449d6e1eaa8f7ce4'
             'SKIP'
             '6e54ece7ec7022b3c9d94ad64bdf1017338da16c618966e8baf398e6f18f80f7b0576edf1d1da47ed77b96d577e4cbb2bb0156b0b11c183a0accf22654b0a2bb'
             'bdde7ae015d8a98ba55e84b86dc05aca1d4f8de85be7e4bd6187054bfe4ac83b5a20538945b63fb073caab78022141e9545685e4e3698c97ff173cf30859e285')

Offline

#7 2021-10-22 18:30:59

an0nsquest
Member
Registered: 2021-10-22
Posts: 18

Re: [SOLVED] question about offline installation of wine using pacman

loqs wrote:

Did you read the link I previously posted.  Particularity the section Arch_Build_System#Retrieve_PKGBUILD_source_using_Git?
Alternative using git directly:

git clone https://github.com/archlinux/svntogit-community.git --single-branch --branch "packages/wine" wine
cd wine/trunk/

Edit PKGBUILD here to change pkgver and sha512sums.  git diff of changes I made

git diff
diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD
index d0ec5a5..96c52a1 100644
--- a/trunk/PKGBUILD
+++ b/trunk/PKGBUILD
@@ -4,7 +4,7 @@
 # Contributor: Giovanni Scafora <giovanni@archlinux.org>
 
 pkgname=wine
-pkgver=6.18
+pkgver=6.19
 pkgrel=1
 
 _pkgbasever=${pkgver/rc/-rc}
@@ -12,7 +12,7 @@ _pkgbasever=${pkgver/rc/-rc}
 source=(https://dl.winehq.org/wine/source/6.x/$pkgname-$_pkgbasever.tar.xz{,.sign}
         30-win32-aliases.conf
         wine-binfmt.conf)
-sha512sums=('d8f54f8fbb61b4af2a6f97328d33b0389ab0fb6a9dac97b2832af3d911a9f23c08653f40ec77f7c0eedd694c4a1c1228fe9dd4d859d8b3d7419e21847de7bcfe'
+sha512sums=('6d58bca9a4b8ed94f34a532da6403341f325a30d8e1b78997de009ecaafad655d15733823d7d1c8bd906efc568a649f8b7bee5c10f2e271e449d6e1eaa8f7ce4'
             'SKIP'
             '6e54ece7ec7022b3c9d94ad64bdf1017338da16c618966e8baf398e6f18f80f7b0576edf1d1da47ed77b96d577e4cbb2bb0156b0b11c183a0accf22654b0a2bb'
             'bdde7ae015d8a98ba55e84b86dc05aca1d4f8de85be7e4bd6187054bfe4ac83b5a20538945b63fb073caab78022141e9545685e4e3698c97ff173cf30859e285')

Ok,
so I installed asp
then ran
asp checkout wine
then ran
cd wine/trunk
then edited wine version from 6.18 -> 6.19 as well as checksums
then moved the 6.19 tar file I downloaded to this directory ../wine/trunk
and then run
makepkg
and then use pacman to install the package.
is that correct?

Offline

#8 2021-10-22 18:41:16

loqs
Member
Registered: 2014-03-06
Posts: 18,996

Re: [SOLVED] question about offline installation of wine using pacman

Yes

Offline

#9 2021-10-22 19:03:20

thiagowfx
Member
Registered: 2013-07-09
Posts: 586

Re: [SOLVED] question about offline installation of wine using pacman

an0nsquest wrote:

I would like to download the latest development version of wine 6.19 / 6.20. After I download it, is it sufficient to run:

pacman -U /path/to/file/packagename.tar.xz?

Or would I have to build the package? If so, how can I do that?

You could use https://aur.archlinux.org/packages/wine-git/ as a starting point. Do a git clone of git://source.winehq.org/git/wine.git, download a snapshot of the package from the AUR, then copy those sources to your target Arch machine and do `makepkg -i`. You may need to install dependencies as well.

It would be a bit easier if you could build the package from an Arch machine that has internet access, then you would just do `makepkg -si` (no need to clone the git repo manually in this case, makepkg does it for you) which would produce a package (.tar.zst), which you would then copy to your target machine and install with `pacman -U pkg.tar.zst`. Small nit: Arch uses .tar.zst by default these days (zstd compression) instead of xz.

Last edited by thiagowfx (2021-10-22 19:04:00)

Offline

#10 2021-10-22 20:10:18

an0nsquest
Member
Registered: 2021-10-22
Posts: 18

Re: [SOLVED] question about offline installation of wine using pacman

loqs wrote:

Yes

how can I get valid PGP keys?

I got this error:

==> ERROR: One or more PGP signatures could not be verified!

edit: I got it by adding the public key to the keychain. Thanks

Last edited by an0nsquest (2021-10-22 20:18:46)

Offline

Board footer

Powered by FluxBB