diff options
author | Árni Dagur | 2019-02-05 14:41:51 +0000 |
---|---|---|
committer | Árni Dagur | 2019-02-05 14:41:51 +0000 |
commit | deb0d4b9f3bda2ee251dfcb19134607695be9515 (patch) | |
tree | 322a59e106427210dbec4f842601219516b2694b | |
download | aur-deb0d4b9f3bda2ee251dfcb19134607695be9515.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cb25bff95e6e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = uutils-coreutils-git + pkgdesc = GNU Coreutils rewritten in Rust + pkgver = r2639.b8dbefcb + pkgrel = 1 + url = https://github.com/uutils/coreutils + arch = x86_64 + license = MIT + makedepends = rust + makedepends = cargo + makedepends = python-sphinx + makedepends = cmake + source = git+https://github.com/uutils/coreutils.git + sha512sums = SKIP + +pkgname = uutils-coreutils-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2b8cac1c2404 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Árni Dagur <arnidg@protonmail.ch> + +_shortname='uutils-coreutils' +pkgname="${_shortname}-git" +pkgver=r2639.b8dbefcb +pkgrel=1 +pkgdesc="GNU Coreutils rewritten in Rust" +arch=('x86_64') +url='https://github.com/uutils/coreutils' +license=('MIT') +makedepends=('rust' 'cargo' 'python-sphinx' 'cmake') +source=("git+https://github.com/uutils/coreutils.git") +sha512sums=('SKIP') + +pkgver() { + cd coreutils + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +check() { + cd coreutils + + # Run Cargo tests + make -j1 test + # Run BusyBox test suite + # make -j1 busytest +} + +package() { + cd coreutils + make -j1 PREFIX=/opt/${_shortname}/ DESTDIR="$pkgdir" install + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${_shortname}/LICENSE" +} |