summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStanislav Seletskiy2016-09-20 00:10:09 +0700
committerStanislav Seletskiy2016-09-20 00:12:38 +0700
commit4f0e76e6899d4bc0c3a8553fae1e5744b464f434 (patch)
tree2b7b7a4a27bd120dc8a7cc629f7287aaff69f762
downloadaur-args-git.tar.gz
initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD32
3 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c003812410a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+# Generated by mksrcinfo v8
+# Mon Sep 19 17:12:01 UTC 2016
+pkgbase = args-git
+ pkgdesc = Simple CLI argument parser for bash
+ pkgver = autogenerated
+ pkgrel = 1
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ source = args-git::git+ssh://github.com/reconquest/args.git
+ md5sums = SKIP
+
+pkgname = args-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..bbed2dd85bc
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/*.tar.xz
+/args-git/
+/pkg/
+/src/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..298c9fa2cb7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+pkgname="args-git"
+pkgver=20160920.1_ec9e7b1
+pkgrel=1
+pkgdesc="Simple CLI argument parser for bash"
+arch=("i686" "x86_64")
+license=("GPL")
+depends=()
+makedepends=(
+ "git"
+)
+source=(
+ "$pkgname::git+ssh://github.com/reconquest/args.git"
+)
+md5sums=("SKIP")
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ local date=$(git log -1 --format="%cd" --date=short | sed s/-//g)
+ local count=$(git rev-list --count HEAD)
+ local commit=$(git rev-parse --short HEAD)
+ echo "$date.${count}_$commit"
+}
+
+build() {
+ :
+}
+
+package() {
+ mkdir -p $pkgdir/usr/bin
+
+ cp "$srcdir/$pkgname/args" $pkgdir/usr/bin
+}