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

+ngpost #7916

Open
davdroman opened this issue Nov 16, 2024 · 2 comments
Open

+ngpost #7916

davdroman opened this issue Nov 16, 2024 · 2 comments

Comments

@davdroman
Copy link
Contributor

Would be great to have https://github.com/mbruel/ngPost

@jhheider
Copy link
Contributor

doesn't look too difficult. the base package.yml is

distributable:
  url: https://github.com/mbruel/ngPost/archive/refs/tags/{{version.tag}}.tar.gz
  strip-components: 1

versions:
  github: mbruel/ngPost

provides:
  - bin/ngPost

build:
  dependencies:
    qt.io: 5
    openssl.org: '*'
  working-directory: src
  script:
    - qmake
    - make
    # move bin to {{prefix}}

test: ngPost --help

it looks like it will require par2 and rar to be packaged first.

@jhheider
Copy link
Contributor

jhheider commented Nov 20, 2024

more progress, but hitting macos framework errors. here's the WIP if anyone wants to touch it:

distributable:
  url: https://github.com/mbruel/ngPost/archive/refs/tags/{{version.tag}}.tar.gz
  strip-components: 1

versions:
  github: mbruel/ngPost

provides:
  - bin/ngPost

dependencies:
  qt.io: 5
  openssl.org: '*'

build:
  dependencies:
    github.com/Parchive/par2cmdline: '*' # gets vendored in
    # parpar binaries
    curl.se: '*'
    tukaani.org/xz: '*'
  working-directory: src
  script:
    - cp {{deps.github.com/Parchive/par2cmdline.prefix}}/bin/par2 .
    - curl -L -o parpar.xz $PARPAR
    - xz -d --force parpar.xz
    - qmake
    - make
    - run:
        - mkdir bin libexec
        - cp -a $SRCROOT/src/ngPost.app libexec/
        - ln -s ../libexec/ngPost.app/Contents/MacOS/ngPost bin/ngPost
        - install_name_tool -add_rpath @loader_path/../../../../../../../.. libexec/ngPost.app/Contents/MacOS/ngPost

      working-directory: '{{prefix}}'
      if: darwin
  skip: fix-machos

  env:
    linux/x86-64:
      PARPAR: https://github.com/animetosho/ParPar/releases/download/v0.4.3/parpar-v0.4.3-linux-static-amd64.xz
    linux/aarch64:
      PARPAR: https://github.com/animetosho/ParPar/releases/download/v0.4.3/parpar-v0.4.3-linux-static-aarch64.xz
    # no aarch64 bins for macos
    darwin:
      PARPAR: https://github.com/animetosho/ParPar/releases/download/v0.4.3/parpar-v0.4.3-macos-x64.xz

test: ngPost --help

needs: #7968

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants