Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:project:sources [2019/09/08 22:31]
emulatorman
en:project:sources [2022/03/08 03:00] (current)
i3_relativism ↷ Links adapted because of a move operation
Line 2: Line 2:
  
 Hyperbola Project offers several sources services for users who wish build Hyperbola from scratch. Hyperbola Project offers several sources services for users who wish build Hyperbola from scratch.
- 
- 
-<note tip>It is recommended to use libretools to compile these sources from a clean chroot environment. 
-<code bash> 
-# pacman -S libretools 
-</code> 
-Navigate to your desired extracted source tarball 
-<code bash> 
-# librechroot make 
-</code> 
-Install compiled package when build is completed 
-<code bash> 
-# pacman -U [pkgname].pkg.tar.xz 
-</code> 
-</note> 
  
 ===== Package Sources Repositories ===== ===== Package Sources Repositories =====
  
-Hyperbola source tarballs contain everything that is used to build a complete package. This includes the PKGBUILD, patches, files and upstream sources tarballs. If an upstream tarballs contain non-free media, they are deblobbed prior to being placed in these tarballs to respect your-freedom. These tarballs can be downloaded directly via HTTPS from the mirror sites listed below.+Hyperbola source tarballs contain everything that is used to build a complete package. This includes the PKGBUILD, patches, files and upstream sources tarballs. If an upstream tarballs contain nonfree media, they are deblobbed prior to being placed in these tarballs to respect your freedom. These tarballs can be downloaded directly via HTTPS from the mirror sites listed below.
  
 ==== Stable ==== ==== Stable ====
Line 44: Line 29:
 | USA | USA
 | [[https://mirror.fsf.org/hyperbola/gnu-plus-linux-libre/stable/sources/ | Free Software Foundation]] | [[https://mirror.fsf.org/hyperbola/gnu-plus-linux-libre/stable/sources/ | Free Software Foundation]]
 +|-
 +| {{:flag_of_the_netherlands.png|}}
 +| Netherlands
 +| [[https://hyperbola.isacdaavid.info/gnu-plus-linux-libre/stable/sources/ | Isaac David's mirror]]
 |- |-
 | {{:flag_of_lithuania.png|}} | {{:flag_of_lithuania.png|}}
Line 79: Line 68:
 |} |}
 |} |}
 +
 +==== Build procedure ====
 +
 +It is recommended to use libretools to compile these sources from a clean chroot environment.
 +
 +<code bash>
 +# pacman -S libretools
 +</code>
 +
 +<note tip>
 +See the [[https://wiki.parabola.nu/Package_maintainer_guide|Parabola's Package Maintainer Guide]] for further details about libretools.
 +</note>
 +
 +Download manually the source tarball and signature from [[en:project:sources#stable|stable]] or [[en:project:sources#testing|testing]] version.
 +
 +<code bash>
 +$ wget "https://repo.hyperbola.info:50012/gnu-plus-linux-libre/stable/sources/hyperbola/[package_name]-[version]-[release].src.tar.gz"
 +</code>
 +
 +<code bash>
 +$ wget "https://repo.hyperbola.info:50012/gnu-plus-linux-libre/stable/sources/hyperbola/[package_name]-[version]-[release].src.tar.gz.sig"
 +</code>
 +
 +Verify the authenticity of the source tarball.
 +
 +<code bash>
 +$ gpg --verify [package_name]-[version]-[release].src.tar.gz.sig
 +</code>
 +
 +<note tip>
 +If gpg complains about the key ID, try the following commands instead:
 +
 +<code bash>
 +$ gpg --keyserver pgp.mit.edu --recv-key [key ID]
 +</code>
 +
 +<code bash>
 +$ gpg --list-key --with-fingerprint [key ID]
 +</code>
 +
 +Check the output of the last command, to make sure the fingerprint is correct. 
 +</note>
 +
 +Extract and navigate to your desired extracted source tarball.
 +
 +<code bash>
 +$ mkdir foo
 +</code>
 +
 +<code bash>
 +$ bsdtar xpf [package_name]-[version]-[release].src.tar.gz -C foo
 +</code>
 +
 +<code bash>
 +$ cd foo
 +</code>
 +
 +Build the desired extracted source tarball
 +
 +<code bash>
 +$ doas libremakepkg
 +</code>
 +
 +<note warning>
 +Using su would not work with libremakepkg.
 +</note>
 +
 +Install the compiled package when build is completed
 +
 +<code bash>
 +# pacman -U [package_name]-[version]-[release]-[architecture].pkg.tar.xz
 +</code>
  
 ===== Other Sources ===== ===== Other Sources =====