🔒 Repository is read-only – file editing is disabled.

recipes/core/coreutils/PAGBUILD.yaml main

50 linii Raw ← Powrót
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
pkgname: coreutils
pkgver: '9.11'
pkgrel: '2'
pkgdesc: 'Utilities for showing and setting the basic system characteristics'
url: 'https://www.gnu.org/software/coreutils/'
arch: x86_64
depends: []
makedepends:
- autoconf
- automake
- gettext

source:
- 'https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz'
- 'https://www.linuxfromscratch.org/patches/downloads/${pkgname}/${pkgname}-${pkgver}-i18n-1.patch'

sha256sums:
- 394024eda0a5955217ceda9cd1201e65dc8fa3aa29c2951135a49521d57c3cc3
- 7c2aecf9ae24b87b019595e382b9f41d2c96de7f95abe95ad8cacc7e2ce1bbcc

build: |
  cd ${pkgname}-${pkgver}

  patch -Np1 -i ../${pkgname}-${pkgver}-i18n-1.patch

  autoreconf -fv
  automake -af

  FORCE_UNSAFE_CONFIGURE=1 ./configure --prefix=/usr \
  --enable-no-install-program=kill,uptime

  FORCE_UNSAFE_CONFIGURE=1 make || FORCE_UNSAFE_CONFIGURE=1 make -j1
  if [ -f /tools/bin/su ];then
  	make NON_ROOT_USERNAME=nobody check-root

  	echo "dummy:x:1000:nobody" >> /etc/group
  	chown -Rv nobody .

  	su-tools nobody -s /bin/bash -c "make -k RUN_EXPENSIVE_TESTS=yes check"||true

  	sed -i '/dummy/d' /etc/group
  fi
  make DESTDIR=${PKGDIR} install

  mkdir -p ${PKGDIR}/usr/share/man/man8
  mv -v ${PKGDIR}/usr/share/man/man1/chroot.1 ${PKGDIR}/usr/share/man/man8/chroot.8
  sed -i s/\"1\"/\"8\"/1 ${PKGDIR}/usr/share/man/man8/chroot.8

package: |
  true