PaganOS Luna 0.6.0
PL EN DE
🔒 Repository is read-only – file editing is disabled.

recipes/core/coreutils/PAGBUILD.yaml main

51 lines Raw ← Back
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
pkgname: coreutils
pkgver: '9.12'
pkgrel: '2'
pkgdesc: 'Utilities for showing and setting the basic system characteristics'
url: 'https://www.gnu.org/software/coreutils/'
arch: x86_64
depends:
- attr   # cp/mv/install linkują libattr.so.1 – bez tego cp nie startuje
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:
- SKIP
- SKIP

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