summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorIsmael González2018-07-23 23:28:08 +0200
committerIsmael González2018-07-23 23:28:08 +0200
commit533c06a4a81ebed0217f3f8af56d4b3f2c68f9e9 (patch)
tree839a83abc812b960730e60c2e86423625564c0e0
parent80f5b548df4b711f86f98b790db658b5da0d0030 (diff)
downloadaur-533c06a4a81ebed0217f3f8af56d4b3f2c68f9e9.tar.gz
Fix install file paths
-rw-r--r--PKGBUILD11
1 files changed, 6 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e6b1932efa5..14cf07909a5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,12 +2,12 @@
pkgname=rnr
pkgver=0.1.4
-pkgrel=1
+pkgrel=2
pkgdesc='Command-line tool to rename multiple files.'
arch=('x86_64')
url='https://github.com/ChuckDaniels87/rnr'
license=('MIT')
-makedepends=('cargo' 'git')
+makedepends=('cargo')
source=("https://github.com/ChuckDaniels87/$pkgname/archive/v$pkgver.tar.gz")
md5sums=('SKIP')
@@ -19,18 +19,19 @@ build() {
package() {
cd "$pkgname-$pkgver"
+ # Binary
+ install -Dm755 "target/release/rnr" "$pkgdir/usr/bin/rnr"
# Completion files
- install -Dm644 "target/release/build/rnr-"*/_rnr \
+ install -Dm644 "target/release/build/rnr-"*/out/_rnr \
"$pkgdir/usr/share/zsh/site-functions/_rnr"
install -Dm644 "target/release/build/rnr-"*/out/rnr.bash \
"$pkgdir/usr/share/bash-completion/completions/rnr"
install -Dm644 "target/release/build/rnr-"*/out/rnr.fish \
"$pkgdir/usr/share/fish/completions/rnr.fish"
-
# Documentation
install -Dm644 "README.md" "$pkgdir/usr/share/doc/${pkgname}/README.md"
# License files
- install -Dm644 LICENCE \
+ install -Dm644 LICENSE \
"$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}
# vim: ts=2 sw=2 et: