summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authordesbma2020-03-09 00:32:55 +0100
committerdesbma2020-03-09 00:53:16 +0100
commit2555fb1e7c5591e6235df1f5f0b1662fd50d8e93 (patch)
tree0e7d09e225c56a2d1d88428a4f189323a651149d
downloadaur-2555fb1e7c5591e6235df1f5f0b1662fd50d8e93.tar.gz
Initial commit
-rw-r--r--.SRCINFO13
-rw-r--r--.gitignore2
-rw-r--r--PKGBUILD28
3 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6f2778204f5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = zoxide
+ pkgdesc = A fast cd command that learns your habits
+ pkgver = 0.1.1
+ pkgrel = 1
+ url = https://github.com/ajeetdsouza/zoxide
+ arch = x86_64
+ license = MIT
+ makedepends = rust
+ source = zoxide-0.1.1.tar.gz::https://github.com/ajeetdsouza/zoxide/archive/v0.1.1.tar.gz
+ sha512sums = 9e9372b395e774cba4750df291205299faffba6a805729dda518f12a6176f4c1ea3521aa6481ba3e8f8985088d48d2fe16f30836fdb9a6d0d8a49b32b00e2e4b
+
+pkgname = zoxide
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..1192e1dabc9
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/*.pkg.tar.xz
+/zoxide*.tar.gz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0916d89c1bf
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: desbma
+pkgname=zoxide
+pkgver=0.1.1
+pkgrel=1
+pkgdesc='A fast cd command that learns your habits'
+arch=('x86_64')
+url="https://github.com/ajeetdsouza/${pkgname}"
+license=('MIT')
+makedepends=('rust')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ajeetdsouza/${pkgname}/archive/v${pkgver}.tar.gz")
+sha512sums=('9e9372b395e774cba4750df291205299faffba6a805729dda518f12a6176f4c1ea3521aa6481ba3e8f8985088d48d2fe16f30836fdb9a6d0d8a49b32b00e2e4b')
+
+build() {
+ cd "${pkgname}-${pkgver}"
+ cargo build --release
+}
+
+check() {
+ cd "${pkgname}-${pkgver}"
+ cargo test --release
+}
+
+package() {
+ cd "${pkgname}-${pkgver}"
+ install -Dm 755 -t "${pkgdir}/usr/bin" ./target/release/${pkgname}
+ install -Dm 644 zoxide.plugin.zsh "${pkgdir}/usr/share/${pkgname}/${pkgname}.zsh"
+ install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}