From 5e97418754d2ae376a297e86a7fc751cdb69bfe7 Mon Sep 17 00:00:00 2001 From: Rafael Baboni Dominiquini Date: Tue, 3 Feb 2026 19:20:08 -0300 Subject: [PATCH] Published: 0.3.8 --- .SRCINFO | 19 +++++++++++++++ .gitignore | 5 ++++ .nvchecker.toml | 5 ++++ PKGBUILD | 64 +++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 93 insertions(+) create mode 100644 .SRCINFO create mode 100644 .gitignore create mode 100644 .nvchecker.toml create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b9e43901cf15 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = pmg-bin + pkgdesc = PMG protects developers from getting hacked by malicious open source packages + pkgver = 0.3.8 + pkgrel = 1 + url = https://github.com/safedep/pmg + arch = x86_64 + arch = i686 + arch = aarch64 + license = Apache-2.0 + provides = pmg + conflicts = pmg + source_x86_64 = pmg-x86_64-0.3.8.tgz::https://github.com/safedep/pmg/releases/download/v0.3.8/pmg_Linux_x86_64.tar.gz + sha256sums_x86_64 = fb28eba3a7264553f46dfc2c8625c10a0d02c8cd956747deb16273f1aaca6097 + source_i686 = pmg-i686-0.3.8.tgz::https://github.com/safedep/pmg/releases/download/v0.3.8/pmg_Linux_i386.tar.gz + sha256sums_i686 = 7979a18566623ce25fd34bf209c0931baa22c5fc2050bd2bab08b358c99789f5 + source_aarch64 = pmg-aarch64-0.3.8.tgz::https://github.com/safedep/pmg/releases/download/v0.3.8/pmg_Linux_arm64.tar.gz + sha256sums_aarch64 = eb9ddad8b6eb9575a9b37ef3a3483513ed903760be6c89c426b86652f03284fd + +pkgname = pmg-bin diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..61d143428d73 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +* +!.nvchecker.toml +!.gitignore +!PKGBUILD +!.SRCINFO diff --git a/.nvchecker.toml b/.nvchecker.toml new file mode 100644 index 000000000000..538f1cea7317 --- /dev/null +++ b/.nvchecker.toml @@ -0,0 +1,5 @@ +[pmg-bin] +source = "github" +github = "safedep/pmg" +use_latest_release = true +prefix = "v" diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..475d49deddc0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,64 @@ +# Maintainer: Rafael Dominiquini + +_pkgauthor=safedep +_pkgname=pmg +_appname=${_pkgname} +pkgname=${_pkgname}-bin +pkgdesc="PMG protects developers from getting hacked by malicious open source packages" + +pkgver=0.3.8 +pkgrel=1 +_pkgvername=v${pkgver} + +arch=('x86_64' 'i686' 'aarch64') +_barch=('Linux_x86_64' 'Linux_i386' 'Linux_arm64') + +url="https://github.com/${_pkgauthor}/${_pkgname}" +_urlraw="https://raw.githubusercontent.com/${_pkgauthor}/${_pkgname}/${_pkgvername}" + +license=('Apache-2.0') + +provides=("${_pkgname}") +conflicts=("${_pkgname}") + +source_x86_64=("${_pkgname}-${arch[0]}-${pkgver}.tgz::${url}/releases/download/${_pkgvername}/${_pkgname}_${_barch[0]}.tar.gz") +source_i686=("${_pkgname}-${arch[1]}-${pkgver}.tgz::${url}/releases/download/${_pkgvername}/${_pkgname}_${_barch[1]}.tar.gz") +source_aarch64=("${_pkgname}-${arch[2]}-${pkgver}.tgz::${url}/releases/download/${_pkgvername}/${_pkgname}_${_barch[2]}.tar.gz") +sha256sums_x86_64=('fb28eba3a7264553f46dfc2c8625c10a0d02c8cd956747deb16273f1aaca6097') +sha256sums_i686=('7979a18566623ce25fd34bf209c0931baa22c5fc2050bd2bab08b358c99789f5') +sha256sums_aarch64=('eb9ddad8b6eb9575a9b37ef3a3483513ed903760be6c89c426b86652f03284fd') + + +case ${CARCH} in + ${arch[0]}) + _CARCH="${_barch[0]}" + ;; + ${arch[1]}) + _CARCH="${_barch[1]}" + ;; + ${arch[2]}) + _CARCH="${_barch[2]}" + ;; +esac + +build() { + cd "${srcdir}/" || exit + + ./${_pkgname} completion bash > ${_pkgname}.bash + ./${_pkgname} completion zsh > ${_pkgname}.zsh + ./${_pkgname} completion fish > ${_pkgname}.fish +} + +package() { + cd "${srcdir}/" || exit + + install -Dm755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}" + + install -D -m644 "${_pkgname}.bash" "${pkgdir}/usr/share/bash-completion/completions/${_pkgname}" + install -D -m644 "${_pkgname}.zsh" "${pkgdir}/usr/share/zsh/site-functions/_${_pkgname}" + install -D -m644 "${_pkgname}.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/${_pkgname}.fish" + + install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md" + + install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +}