42 lines
1.0 KiB
Bash
42 lines
1.0 KiB
Bash
#!/usr/bin/env bash
|
|
name='coreutils'
|
|
release='4'
|
|
version='9.5'
|
|
url='https://ftp.gnu.org/gnu/coreutils/'
|
|
description='The basic file, shell and text manipulation utilities of the GNU operating system'
|
|
email='aliriza.keskin@pardus.org.tr'
|
|
maintainer='aliriza'
|
|
license=('GPLv3')
|
|
source=("https://ftp.gnu.org/gnu/coreutils/coreutils-$version.tar.xz")
|
|
depends=(acl attr gmp libcap)
|
|
makedepends=(perl openssl)
|
|
sha256sums=('cd328edeac92f6a665de9f323c93b712af1858bc2e0d88f3f7100469470a1b8a')
|
|
uses=(openssl)
|
|
openssl_depends=(openssl)
|
|
arch=('x86_64')
|
|
group=(sys.apps)
|
|
|
|
cd $name-$version
|
|
|
|
export CFLAGS='-static-libgcc -static-libstdc++ -fPIC'
|
|
|
|
setup(){
|
|
./configure --prefix=/usr \
|
|
--libdir=/usr/lib64 \
|
|
--libexecdir=/usr/libexec \
|
|
--enable-largefile \
|
|
--enable-single-binary=symlinks \
|
|
--enable-no-install-program=groups,hostname,kill,uptime \
|
|
$(use_opt openssl --with-openssl --without-openssl)
|
|
|
|
}
|
|
|
|
build(){
|
|
make $jobs
|
|
}
|
|
|
|
package(){
|
|
make DESTDIR="$DESTDIR" install $jobs
|
|
}
|
|
|