|
| 1 | +diff --git a/PKGBUILD b/PKGBUILD |
| 2 | +index f4f8acf..6d4c2ac 100644 |
| 3 | +--- a/PKGBUILD |
| 4 | ++++ b/PKGBUILD |
| 5 | +@@ -19,6 +19,7 @@ sha256sums=('c80f7ce8b659c8f510659298ef5427bfaf7ee3258760bcffe2c45f7628de858e') |
| 6 | + |
| 7 | + prepare() { |
| 8 | + cd "$srcdir/$pkgname-$pkgver" |
| 9 | ++ patch -Np1 -i "${srcdir}/Add-linux-loongarch64-platform-support.patch" |
| 10 | + cargo fetch --locked --target "$(rustc --print host-tuple)" |
| 11 | + } |
| 12 | + |
| 13 | +@@ -29,7 +30,23 @@ build() { |
| 14 | + |
| 15 | + check() { |
| 16 | + cd "$srcdir/$pkgname-$pkgver" |
| 17 | +- cargo test --frozen --all-features |
| 18 | ++ # Needs print_argv executable in https://github.com/zertosh/dotslash_fixtures |
| 19 | ++ skip_tests=( |
| 20 | ++ clean_command_ok |
| 21 | ++ fetch_simple |
| 22 | ++ get_extracted_cache_path_simple |
| 23 | ++ http__arg0 |
| 24 | ++ http__gz__valid_executable |
| 25 | ++ http__nonexistent_url |
| 26 | ++ http__plain__valid_executable |
| 27 | ++ http__tar_gz__valid_executable |
| 28 | ++ http__tar_xz__valid_executable |
| 29 | ++ http__tar_zst__valid_executable |
| 30 | ++ http__xz__valid_executable |
| 31 | ++ http__zip__valid_executable |
| 32 | ++ http__zst__valid_executable |
| 33 | ++ ) |
| 34 | ++ cargo test --frozen --all-features -- $(printf -- '--skip %s ' "${skip_tests[@]}") |
| 35 | + } |
| 36 | + |
| 37 | + package() { |
| 38 | +@@ -38,3 +55,6 @@ package() { |
| 39 | + install -Dm644 LICENSE-MIT LICENSE-APACHE \ |
| 40 | + -t "$pkgdir/usr/share/licenses/$pkgname/" |
| 41 | + } |
| 42 | ++ |
| 43 | ++source+=("Add-linux-loongarch64-platform-support.patch::https://github.com/facebook/dotslash/commit/29a62b898befca9aacd8818121536d051c1dc925.diff") |
| 44 | ++sha256sums+=('2e875905e7eff3f39a6fbeaa0d90c6387ad0219c42755e3a0c7df4885196a377') |
0 commit comments