summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorIsmael González2018-07-23 23:28:08 +0200
committerIsmael González2018-07-23 23:28:58 +0200
commit416235a579f6487082f53c31fb5a4238a2e3d0b6 (patch)
tree94bcd07403929f0cf54310c3d2249d67fafc83d1 /PKGBUILD
parent80f5b548df4b711f86f98b790db658b5da0d0030 (diff)
downloadaur-416235a579f6487082f53c31fb5a4238a2e3d0b6.tar.gz
Fix install file paths
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD11
1 files changed, 6 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e6b1932efa5a..14cf07909a54 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: