summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorlmartinez-mirror2021-04-15 09:43:54 -0500
committerlmartinez-mirror2021-04-15 09:43:54 -0500
commit17df6e9a9a919263cc19b2de3f52c3ac753ca8ef (patch)
tree87d7d2603cde250e591981d25b50b774c69873c9
parent337728c923e7d25ade979c597999e8fd87d0d286 (diff)
downloadaur-17df6e9a9a919263cc19b2de3f52c3ac753ca8ef.tar.gz
add manpages
-rw-r--r--.SRCINFO8
-rw-r--r--.gitignore6
-rw-r--r--PKGBUILD21
3 files changed, 20 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8c90d72cade..0c986a25792 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,15 @@
pkgbase = zoxide-git
pkgdesc = A fast cd command that learns your habits
- pkgver = 0.5.0.r3.g21018d5
- pkgrel = 1
+ pkgver = 0.6.0.r4.g1828414
+ pkgrel = 2
url = https://github.com/ajeetdsouza/zoxide
arch = x86_64
license = MIT
- makedepends = rust
+ makedepends = cargo
makedepends = git
+ depends = gcc-libs
provides = zoxide
conflicts = zoxide
- conflicts = zoxide-bin
source = zoxide-git::git+https://github.com/ajeetdsouza/zoxide
sha512sums = SKIP
diff --git a/.gitignore b/.gitignore
index 981ed8e64a9..73de0d90019 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
-/*.pkg.tar.*
-/zoxide*.tar.gz
+!PKGBUILD
+!.SRCINFO
+!.gitignore
+*
diff --git a/PKGBUILD b/PKGBUILD
index 34983ef6428..fb4018f233d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,15 +2,16 @@
# Credit: desbma
pkgname=zoxide-git
_pkgname=zoxide
-pkgver=0.5.0.r3.g21018d5
-pkgrel=1
+pkgver=0.6.0.r4.g1828414
+pkgrel=2
pkgdesc='A fast cd command that learns your habits'
arch=('x86_64')
-url="https://github.com/ajeetdsouza/${_pkgname}"
+url="https://github.com/ajeetdsouza/zoxide"
license=('MIT')
-makedepends=('rust' 'git')
-provides=('zoxide')
-conflicts=('zoxide' 'zoxide-bin')
+depends=('gcc-libs')
+makedepends=('cargo' 'git')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
source=("${pkgname}::git+${url}")
sha512sums=('SKIP')
@@ -21,11 +22,13 @@ pkgver() {
build() {
cd "${pkgname}"
- cargo build --release --locked
+ cargo build --release --locked --all-features --target-dir=target
}
package() {
cd "${pkgname}"
- install -Dm 755 -t "${pkgdir}/usr/bin" ./target/release/${_pkgname}
- install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
+ install -Dm 755 -t "${pkgdir}/usr/bin" ./target/release/zoxide
+ install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ find man -name '*.1' -type f \
+ -exec install -Dm 644 '{}' -t "${pkgdir}/usr/share/man/man1/" \;
}