summarylogtreecommitdiffstats
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
downloadaur-80f5b548df4b711f86f98b790db658b5da0d0030.tar.gz
Initial commit
-rw-r--r--.SRCINFO14
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD36
3 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e34ce8e7751
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = rnr
+ pkgdesc = Command-line tool to rename multiple files.
+ pkgver = 0.1.4
+ pkgrel = 1
+ url = https://github.com/ChuckDaniels87/rnr
+ arch = x86_64
+ license = MIT
+ makedepends = cargo
+ makedepends = git
+ source = https://github.com/ChuckDaniels87/rnr/archive/v0.1.4.tar.gz
+ md5sums = SKIP
+
+pkgname = rnr
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..72e8ffc0db8
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*
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: