core/coreutils/Pkgfile

32 lines
971 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
2010-06-03 12:24:42 +02:00
# Depends on: libgmp acl libcap
2006-02-23 16:26:10 +01:00
name=coreutils
2015-07-04 20:14:03 +02:00
version=8.24
2010-10-20 14:19:58 +02: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
2012-04-02 14:47:37 +02:00
export FORCE_UNSAFE_CONFIGURE=1
2006-02-23 16:26:10 +01:00
./configure --prefix=/usr \
2011-09-11 09:48:34 +02:00
--libexecdir=/usr/lib \
2006-11-23 08:05:47 +01:00
--mandir=/usr/man \
--disable-nls \
2008-01-23 11:33:42 +01:00
--disable-assert \
--enable-no-install-program=uptime,kill,chcon,runcon,groups
2014-11-02 13:22:16 +01:00
make
2006-02-23 16:26:10 +01:00
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
}