summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorb1tl0rd2019-12-08 22:35:54 -0300
committerb1tl0rd2019-12-08 22:35:54 -0300
commitf1e22f892baf312a7523dbb3dfd4d45488926c99 (patch)
treefe8c1096f764e7406f5a1304edbca2a5d8b2ea87
downloadaur-f1e22f892baf312a7523dbb3dfd4d45488926c99.tar.gz
dust-git
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD37
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c1f9b6e9015
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = dust-git
+ pkgdesc = A more intuitive version of du in rust
+ pkgver = 0.4.2.148.ga6839c0
+ pkgrel = 1
+ url = https://github.com/bootandy/dust
+ arch = i686
+ arch = x86_64
+ license = Apache
+ makedepends = rust
+ makedepends = cargo
+ makedepends = git
+ provides = dust
+ conflicts = dust
+ source = dust::git+https://github.com/bootandy/dust.git
+ sha256sums = SKIP
+
+pkgname = dust-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..90780f67605
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Walter C <bitlord {at} disroot {dot} org>
+
+pkgname="dust-git"
+_pkgname="dust"
+pkgver=0.4.2.148.ga6839c0
+pkgrel=1
+pkgdesc="A more intuitive version of du in rust"
+arch=("i686" "x86_64")
+url="https://github.com/bootandy/dust"
+license=("Apache")
+depends=()
+makedepends=("rust" "cargo" "git")
+provides=("dust")
+conflicts=("dust")
+source=("$_pkgname::git+https://github.com/bootandy/dust.git")
+sha256sums=("SKIP")
+
+pkgver() {
+ cd "$_pkgname"
+ echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd $_pkgname
+ cargo build --release --locked
+}
+
+check() {
+ cd $_pkgname
+ cargo test --release --locked
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+ install -Dm755 target/release/$_pkgname "$pkgdir/usr/bin/$_pkgname"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}