summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7d2cbcb79437543f94a43e242bc5d40312e28009 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=coreutils-git
pkgver=9.3.r29.g059e53e5b
pkgrel=1
pkgdesc="Basic file, shell and text manipulation utilities of the GNU operating system"
arch=('i686' 'x86_64')
url="https://www.gnu.org/software/coreutils/coreutils.html"
license=('GPL3')
depends=('glibc' 'gmp' 'libcap' 'openssl')
makedepends=('git' 'gettext' 'gperf' 'gzip' 'perl' 'rsync' 'tar' 'texinfo' 'wget')
provides=("coreutils=$pkgver")
conflicts=('coreutils')
source=("git+https://git.savannah.gnu.org/git/coreutils.git")
sha256sums=('SKIP')


pkgver() {
  cd "coreutils"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "coreutils"

  ./bootstrap
  ./configure \
    --prefix="/usr" \
    --libexecdir="/usr/lib" \
    --with-openssl \
    --enable-no-install-program="groups,hostname,kill,uptime"
  make
}

check() {
  cd "coreutils"

  #make check
}

package() {
  cd "coreutils"

  make DESTDIR="$pkgdir" install
}