2006-02-23 16:26:10 +01:00
|
|
|
# Description: A collection of core GNU utilities
|
|
|
|
# URL: http://www.gnu.org/software/coreutils/
|
2007-01-23 18:25:18 +01:00
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
name=coreutils
|
2008-06-01 16:09:45 +02:00
|
|
|
version=6.12
|
2008-09-16 20:33:09 +02:00
|
|
|
release=2
|
2008-01-25 11:23:56 +01:00
|
|
|
source=(http://ftp.gnu.org/pub/gnu/$name/$name-$version.tar.gz
|
|
|
|
coreutils-uname.patch)
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
2008-01-23 11:33:42 +01:00
|
|
|
|
2008-01-25 11:23:56 +01:00
|
|
|
patch -p1 -i $SRC/coreutils-uname.patch
|
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
DEFAULT_POSIX2_VERSION=199209 \
|
|
|
|
./configure --prefix=/usr \
|
2006-11-23 08:05:47 +01:00
|
|
|
--mandir=/usr/man \
|
|
|
|
--disable-nls \
|
2008-01-23 11:33:42 +01:00
|
|
|
--disable-assert \
|
2008-09-16 20:33:09 +02:00
|
|
|
--enable-no-install-program=uptime,kill,chcon,runcon,groups
|
2006-02-23 16:26:10 +01:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2008-01-23 11:33:42 +01:00
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
mkdir $PKG/bin
|
2007-02-20 21:13:12 +01:00
|
|
|
mv $PKG/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo,false,ln,ls,mkdir,sleep} $PKG/bin
|
2006-02-23 16:26:10 +01:00
|
|
|
mv $PKG/usr/bin/{mknod,mv,pwd,readlink,rm,rmdir,stty,sync,touch,true,uname} $PKG/bin
|
2008-01-23 11:33:42 +01:00
|
|
|
rm -r $PKG/usr/share
|
2006-02-23 16:26:10 +01:00
|
|
|
}
|