diff options
author | fossdd | 2021-06-26 08:31:43 +0000 |
---|---|---|
committer | fossdd | 2021-06-26 08:31:43 +0000 |
commit | 629089760d3366e1416bd271461d1b2582c36522 (patch) | |
tree | c260bf15f761d7e19eb911cea058f826dc83a6c2 | |
download | aur-629089760d3366e1416bd271461d1b2582c36522.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b5d8ac3eb214 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = vlang-coreutils-git + pkgdesc = coreutils in V + pkgver = r4.a665583 + pkgrel = 1 + url = https://github.com/vlang/coreutils + arch = x86_64 + license = MIT + makedepends = vlang + makedepends = make + provides = false + provides = true + source = git+https://github.com/vlang/coreutils.git + sha256sums = SKIP + +pkgname = vlang-coreutils-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..adac07e6730b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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=() # Conflicts in a way with 'coreutils' but it's required by Arch Linux +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 +} |