summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Cooper2015-10-14 20:18:00 -0700
committerMike Cooper2015-10-14 20:22:53 -0700
commitabbd44ee29431cb7183bbf89211075b21e76ca75 (patch)
treefb810c342658c9dcc4c13c262e70370c1161db77
downloadaur-abbd44ee29431cb7183bbf89211075b21e76ca75.tar.gz
Initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD31
3 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..806cd5a3dd74
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = cargo-edit
+ pkgdesc = A utility for adding cargo dependencies from the command line
+ pkgver = r80.4443aeb
+ pkgrel = 1
+ url = https://github.com/killercup/cargo-edit
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = cargo
+ depends = rust
+ source = git+https://github.com/killercup/cargo-edit.git
+ sha256sums = SKIP
+
+pkgname = cargo-edit
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..5031f77a7d47
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/pkg/
+/src/
+/cargo-edit-git-r*.pkg.tar.xz
+/cargo-edit/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..a897fd1e14ad
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Mike Cooper <mythmon@elem.us>
+
+_pkgname=cargo-edit
+pkgname=$_pkgname-git
+pkgver=r80.4443aeb
+pkgrel=1
+pkgdesc="A utility for adding cargo dependencies from the command line"
+url="https://github.com/killercup/cargo-edit"
+depends=('rust')
+makedepends=('cargo')
+arch=('i686' 'x86_64')
+license=('MIT')
+source=("git+$url.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$_pkgname/"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/$_pkgname/"
+ cargo build --release
+}
+
+package() {
+ cd "$srcdir/$_pkgname/"
+ install -Dm755 target/release/cargo-add "$pkgdir/usr/bin/cargo-add"
+ install -Dm755 target/release/cargo-list "$pkgdir/usr/bin/cargo-list"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}