summaryrefslogtreecommitdiffstats
path: root/coreutils/Pkgfile
blob: f0771baae135575753b116e03d57eaa788929b77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
description="A collection of core GNU utilities."
packager=""
maintainer="CRUX System Team, core-ports at crux dot nu"
url="http://www.gnu.org/software/coreutils/"
depends=(libgmp acl libcap)

name=coreutils
version=8.7
release=1
source=(http://ftp.gnu.org/pub/gnu/$name/$name-$version.tar.xz coreutils-uname.patch)
build () 
{ 
	cd $name-$version;
	patch -p1 -i $SRC/coreutils-uname.patch;
	./configure \
		${CHOST:+--host=${CHOST}} \
		${CBUILD:+--build=${CBUILD}} \
		--prefix=$prefix \
		--mandir=$mandir \
		$(use_enable nls) \
		--disable-assert \
		--enable-no-install-program=uptime,kill,chcon,runcon,groups;
	make;
	make DESTDIR=$PKG install;
	mkdir $PKG/bin;
	mv $PKG$prefix/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo,false,ln,ls,mkdir,sleep} $PKG/bin;
	mv $PKG$prefix/bin/{mknod,mv,pwd,readlink,rm,rmdir,stty,sync,touch,true,uname} $PKG/bin;
}