core/coreutils/Pkgfile

29 lines
774 B
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: A collection of core GNU utilities
2021-12-13 12:24:30 +01:00
# URL: https://www.gnu.org/software/coreutils/
2021-09-26 12:55:00 +02:00
# Maintainer: CRUX System Team, core-ports at crux dot nu
2021-12-13 12:24:30 +01:00
# Depends on: acl libcap libgmp
2006-02-23 16:26:10 +01:00
name=coreutils
2022-04-16 11:55:37 +02:00
version=9.1
2016-01-21 12:23:08 +01:00
release=1
2022-04-16 11:55:37 +02:00
source=(https://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz)
2006-02-23 16:26:10 +01:00
build() {
2021-09-26 12:55:00 +02:00
cd $name-$version
2008-01-23 11:33:42 +01:00
2022-04-16 11:55:37 +02:00
FORCE_UNSAFE_CONFIGURE=1 \
2021-09-26 12:55:00 +02:00
./configure \
--prefix=/usr \
--libexecdir=/usr/lib \
--disable-nls \
--disable-assert \
--enable-no-install-program=uptime,kill,chcon,runcon,groups
make
2021-12-13 12:24:30 +01:00
make DESTDIR=$PKG install
2021-09-26 12:55:00 +02:00
install -d $PKG/bin
mv $PKG/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo,false,ln,ls,mkdir,sleep} $PKG/bin
mv $PKG/usr/bin/{mknod,mv,pwd,readlink,rm,rmdir,stty,sync,touch,true,uname} $PKG/bin
rm -r $PKG/usr/share/info
2006-02-23 16:26:10 +01:00
}