Package Details: qalvpn 1.2.1-1

Git Clone URL: https://aur.archlinux.org/qalvpn.git (read-only, click to copy)
Package Base: qalvpn
Description: QAL VPN is a post-quantum VPN service to protect you against the future of computing: quantum computers
Upstream URL: https://www.qalvpn.com
Keywords: cryptography networking post-quantum qalvpn vpn
Licenses: custom
Submitter: tbhaxor
Maintainer: tbhaxor
Last Packager: tbhaxor
Votes: 0
Popularity: 0.000000
First Submitted: 2023-03-03 23:40 (UTC)
Last Updated: 2023-03-03 23:40 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

xiota commented on 2023-11-11 19:30 (UTC) (edited on 2023-11-11 19:35 (UTC) by xiota)

The privacy policy and terms of use are available online (links below). You can use html-xml-utils and pandoc (add to makedepends) to extract and convert the text.

Here's some code you may find helpful.

makedepends+=(
  'html-xml-utils'
  'pandoc'
)

_privacy_policy="qalvpn_privacy_policy"
_privacy_policy_url="https://qalvpn.com/privacy-policy"
_terms_of_use="qalvpn_terms_of_use"
_terms_of_use_url="https://qalvpn.com/terms-of-use"
#_acceptable_use_policy="qalvpn_acceptable_use_policy"
#_acceptable_use_policy_url=""
_disclaimer="qalvpn_disclaimer"
_disclaimer_url="https://qalvpn.com/disclaimer"

prepare() {
  local _content

  # terms of use 
  _content=$(curl -sSf "${_terms_of_use_url:?}")

  _content=$(
    hxnormalize -x <<< "${_content:?}" \
      | hxselect '.sqs-html-content' \
      | hxnormalize \
      2> /dev/null
  )

  pandoc --quiet -f html -t plain -o "${_terms_of_use:?}.txt" <<< "${_content:?}"

  # disclaimer

  # privacy policy

  # acceptable use policy 
}

package() {
  # license / eula
  install -Dm644 "${_privacy_policy:?}.txt" -t "${pkgdir:?}/usr/share/licenses/$pkgname"
  install -Dm644 "${_terms_of_use:?}.txt" -t "${pkgdir:?}/usr/share/licenses/$pkgname"
  # install -Dm644 "${_acceptable_use_policy:?}.txt" -t "${pkgdir:?}/usr/share/licenses/$pkgname"
  install -Dm644 "${_disclaimer:?}.txt" -t "${pkgdir:?}/usr/share/licenses/$pkgname"
}

tbhaxor commented on 2023-11-11 18:34 (UTC)

Hey @xiota, I couldn't find the license from upstream. It is a closed source application.