[arch-commits] Commit in uutils-coreutils/trunk (PKGBUILD tests.patch)

Levente Polyak anthraxx at archlinux.org
Wed Mar 10 19:30:06 UTC 2021


    Date: Wednesday, March 10, 2021 @ 19:30:06
  Author: anthraxx
Revision: 887240

upgpkg: uutils-coreutils 0.0.4-1

Added:
  uutils-coreutils/trunk/tests.patch
Modified:
  uutils-coreutils/trunk/PKGBUILD

-------------+
 PKGBUILD    |   36 +++++++++++++++++++++++++++++++-----
 tests.patch |   10 ++++++++++
 2 files changed, 41 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-03-10 18:38:02 UTC (rev 887239)
+++ PKGBUILD	2021-03-10 19:30:06 UTC (rev 887240)
@@ -1,27 +1,53 @@
 # Maintainer: Filipe Laíns (ffy00) <lains at archlinux.org>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
 
 _pkgname=coreutils
 pkgname=uutils-$_pkgname
-pkgver=0.0.3
+pkgver=0.0.4
 pkgrel=1
 pkgdesc='Cross-platform Rust rewrite of the GNU coreutils'
 arch=('x86_64')
 url='https://github.com/uutils/coreutils'
 license=('MIT')
+depends=('glibc' 'gcc-libs')
 makedepends=('rust' 'cargo' 'python-sphinx')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
-sha512sums=('69b654d0f40bf5b1e1daf812def765d4f508a5926a65c9ba82a5a07feae6ec38f4e3aff43eeba3170f831d67b6d61c3d2e25c720ecb4ea87d9a4ea7fea12d0c9')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
+        tests.patch)
+sha512sums=('5d5719a0362a20c3a5ee85683c436a1bfcf5b8bf922ebe60c58f620b93d3bdf67c658a987cb8281b160442bd98cb7b4b00bacd9e3814d1b0ae3b6dd1cd43ec83'
+            '1a84aefb95cf6d4ae7582948c5ab3c357269dcd5b2261006b006f7a1b37d3d2a336c47479ab98a390661ee376b9813408af849a91ba0f2bd2493c6a680e07f2a')
 
+prepare() {
+  cd $_pkgname-$pkgver
+  sed 's|"bin"|"builduser"|g' -i tests/by-util/test_{chgrp,chown}.rs
+  patch -Np1 < ../tests.patch
+}
+
+build() {
+  cd $_pkgname-$pkgver
+
+  make PROFILE=release
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  make test \
+      PROFILE=release \
+      CARGOFLAGS=--release \
+      TEST_NO_FAIL_FAST="--no-fail-fast -- --skip test_chown::test_big_p --skip test_chgrp::test_big_p"
+}
+
 package() {
   cd $_pkgname-$pkgver
 
-  make \
+  make install \
       DESTDIR="$pkgdir" \
       PREFIX=/usr \
       MANDIR=/share/man/man1 \
       PROG_PREFIX=uu- \
-      install
+      PROFILE=release
 
   install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
+# vim: ts=2 sw=2 et:

Added: tests.patch
===================================================================
--- tests.patch	                        (rev 0)
+++ tests.patch	2021-03-10 19:30:06 UTC (rev 887240)
@@ -0,0 +1,10 @@
+--- a/GNUmakefile	2021-03-10 16:28:55.907870273 +0100
++++ b/GNUmakefile	2021-03-10 16:29:10.181165402 +0100
+@@ -175,6 +175,7 @@
+ 	fold \
+ 	hashsum \
+ 	head \
++	id \
+ 	install \
+ 	link \
+ 	ln \



More information about the arch-commits mailing list