Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(aur): support wrap_in_directory (#4502)
closes #4500 Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
- Loading branch information
Showing
4 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
internal/pipe/aur/testdata/TestRunPipeWrappedInDirectory.pkgbuild.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# This file was generated by GoReleaser. DO NOT EDIT. | ||
|
||
pkgname='foo-bin' | ||
pkgver=1.2.1 | ||
pkgrel=1 | ||
pkgdesc='' | ||
url='' | ||
arch=('x86_64') | ||
license=('') | ||
provides=('foo') | ||
conflicts=('foo') | ||
|
||
source_x86_64=("${pkgname}_${pkgver}_x86_64.tar.gz::https://dummyhost/download/v1.2.1/foo.tar.gz") | ||
sha256sums_x86_64=('e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855') | ||
|
||
package() { | ||
install -Dm755 "./foo/foo" "${pkgdir}/usr/bin/foo" | ||
} |
11 changes: 11 additions & 0 deletions
11
internal/pipe/aur/testdata/TestRunPipeWrappedInDirectory.srcinfo.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
pkgbase = foo-bin | ||
pkgdesc = | ||
pkgver = 1.2.1 | ||
pkgrel = 1 | ||
conflicts = foo | ||
provides = foo | ||
arch = x86_64 | ||
source_x86_64 = https://dummyhost/download/v1.2.1/foo.tar.gz | ||
sha256sums_x86_64 = e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 | ||
|
||
pkgname = foo-bin |