Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arch package building... #1227

Open
petersilva opened this issue Sep 18, 2024 · 0 comments
Open

arch package building... #1227

petersilva opened this issue Sep 18, 2024 · 0 comments
Labels
wishlist would be nice, not pressing for any particular client.

Comments

@petersilva
Copy link
Contributor

petersilva commented Sep 18, 2024

as a PoC, I built a package for arch linux, it requires creating a PKGBUILD file. Example for one version:

# Maintainer:  Peter Silva [email protected]

pkgname=metpx-sr3
pkgver=3.00.55rc2
# the tag used to create the release on github.
pkgtag=v${pkgver}
pkgrel=1
arch=(any)

source=(https://github.com/MetPX/sarracenia/archive/refs/tags/${pkgtag}.tar.gz)
# checksum of source file above.
sha256sums=('d893da70992f0d5e4e3f7ff64780c9216b24d7f92dca2607cb77d459795785b4')

#_name=${pkgname#python-}
_name=sarracenia
	
makedepends=(python-build python-installer python-wheel python-hatch)

build() {
    cd $_name-$pkgver
    python -m build --wheel --no-isolation
}

package() {
    cd $_name-$pkgver
    python -m installer --destdir="$pkgdir" dist/*.whl
}


  • It should be possible to generate for each release using a script.

  • need to download the source artifact from github for each to generate the sha256 (with makepkg -g on arch.)

  • on ubuntu:

      fractal% shasum -a 256 v3.00.55rc2.tar.gz
      d893da70992f0d5e4e3f7ff64780c9216b24d7f92dca2607cb77d459795785b4  
      v3.00.55rc2.tar.gz
      fractal% 
    
    
  • can just use elementary substitutions to build the rest.

@petersilva petersilva added the wishlist would be nice, not pressing for any particular client. label Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wishlist would be nice, not pressing for any particular client.
Projects
None yet
Development

No branches or pull requests

1 participant