Skip to content

Commit

Permalink
Try with upstream PR
Browse files Browse the repository at this point in the history
  • Loading branch information
aminvakil committed Oct 5, 2023
1 parent 71b9aa9 commit b27df56
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion trivy-git/.SRCINFO
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ pkgbase = trivy-git
provides = trivy
conflicts = trivy
source = git+https://github.com/aquasecurity/trivy.git
source = https://github.com/aquasecurity/trivy/pull/5339.patch
sha256sums = SKIP
sha256sums = 61ceb690273f4a49ce350b2aacccf745701d10690e81dd125ca5d326ba01c2d8

pkgname = trivy-git

10 changes: 8 additions & 2 deletions trivy-git/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ optdepends=("rpm: RHEL/CentOS based image support")
makedepends=("go" "btrfs-progs" "git")
provides=('trivy')
conflicts=('trivy')
source=("git+${url}.git")
sha256sums=('SKIP')
source=("git+${url}.git"
"https://github.com/aquasecurity/trivy/pull/5339.patch")
sha256sums=('SKIP' '61ceb690273f4a49ce350b2aacccf745701d10690e81dd125ca5d326ba01c2d8')

pkgver() {
cd "${srcdir}/${_pkgname}"
Expand All @@ -24,6 +25,11 @@ pkgver() {
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
cd "${srcdir}/${_pkgname}"
patch --forward --strip=1 --input=../../5339.patch
}

build() {
cd "${srcdir}/${_pkgname}/cmd/trivy"
export CGO_CPPFLAGS="${CPPFLAGS}"
Expand Down

0 comments on commit b27df56

Please sign in to comment.