core/coreutils/Pkgfile

33 lines
984 B
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: A collection of core GNU utilities
# URL: http://www.gnu.org/software/coreutils/
# Maintainer: CRUX System Team, core-ports at crux dot nu
2009-03-07 10:55:34 +01:00
# Depends on: libgmp
2006-02-23 16:26:10 +01:00
name=coreutils
2009-09-11 21:38:53 +02:00
version=7.6
2009-03-07 10:55:34 +01:00
release=1
2009-07-15 20:18:28 +02:00
source=(http://ftp.gnu.org/pub/gnu/$name/$name-$version.tar.xz
2008-01-25 11:23:56 +01:00
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 \
2009-03-07 10:55:34 +01:00
--disable-libcap \
--disable-xattr \
--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
}