summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d0a40d101bdb5961e8e262560b8c4548675f99dc (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
# Maintainer: fossdd <fossdd@tutanota.com>
pkgname=vlang-coreutils-git
_pkgname=coreutils
pkgver=r4.a665583
pkgrel=1
pkgdesc="coreutils in V"
url='https://github.com/vlang/coreutils'
license=(MIT)
arch=(x86_64)
depends=()
makedepends=(vlang make)
conflicts=(coreutils)
provides=(false true) # Please update if new commands are commited
source=("git+https://github.com/vlang/coreutils.git")
sha256sums=('SKIP')

pkgver() {
  cd "${_pkgname}"
  ( set -o pipefail
    git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

build() {
  cd "$_pkgname"
}

package() {
  cd "$_pkgname"
  DESTDIR="$pkgdir/usr/bin" make
}