mirror of
https://github.com/archlinux/aur.git
synced 2026-02-28 05:23:08 +01:00
Published: 0.3.8
This commit is contained in:
commit
5e97418754
4 changed files with 93 additions and 0 deletions
19
.SRCINFO
Normal file
19
.SRCINFO
Normal file
|
|
@ -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
|
||||
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
*
|
||||
!.nvchecker.toml
|
||||
!.gitignore
|
||||
!PKGBUILD
|
||||
!.SRCINFO
|
||||
5
.nvchecker.toml
Normal file
5
.nvchecker.toml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
[pmg-bin]
|
||||
source = "github"
|
||||
github = "safedep/pmg"
|
||||
use_latest_release = true
|
||||
prefix = "v"
|
||||
64
PKGBUILD
Normal file
64
PKGBUILD
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
# Maintainer: Rafael Dominiquini <rafaeldominiquini at gmail dot com>
|
||||
|
||||
_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"
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue