summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorIsmael González2018-07-23 23:04:27 +0200
committerIsmael González2018-07-23 23:09:21 +0200
commit80f5b548df4b711f86f98b790db658b5da0d0030 (patch)
tree48ad7775a18aa1e30c58d8d4a3cd384e5eeb2f64 /PKGBUILD
downloadaur-80f5b548df4b711f86f98b790db658b5da0d0030.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e6b1932efa5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Ismael González Valverde <ismgonval@gmail.com>
+
+pkgname=rnr
+pkgver=0.1.4
+pkgrel=1
+pkgdesc='Command-line tool to rename multiple files.'
+arch=('x86_64')
+url='https://github.com/ChuckDaniels87/rnr'
+license=('MIT')
+makedepends=('cargo' 'git')
+source=("https://github.com/ChuckDaniels87/$pkgname/archive/v$pkgver.tar.gz")
+md5sums=('SKIP')
+
+build() {
+ cd "$pkgname-$pkgver"
+ cargo build --release
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ # Completion files
+ install -Dm644 "target/release/build/rnr-"*/_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 \
+ "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
+}
+# vim: ts=2 sw=2 et: