summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD29
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4b3b68b47b8
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = git-number-git
+ pkgdesc = A script to allow a user to perform git commands on files by referencing the files by numbers instead of names
+ pkgver = 1.0.0a.r7.gfc45197
+ pkgrel = 1
+ url = https://github.com/holygeek/git-number
+ arch = i686
+ arch = x86_64
+ license = unknown
+ makedepends = git
+ depends = perl
+ source = git+https://github.com/holygeek/git-number.git
+ md5sums = SKIP
+
+pkgname = git-number-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4d6cde4300e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Gulshan Singh <gsingh2011@gmail.com>
+pkgname=git-number-git
+pkgver=1.0.0a.r9.gd684344
+pkgrel=1
+pkgdesc="A script to allow a user to perform git commands on files by referencing the files by numbers instead of names"
+arch=('i686' 'x86_64')
+url="https://github.com/holygeek/git-number"
+license=('unknown')
+makedepends=('git')
+depends=('perl')
+source=('git+https://github.com/holygeek/git-number.git')
+md5sums=('SKIP')
+
+_gitname="git-number"
+
+pkgver() {
+ cd "$srcdir/$_gitname"
+ git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
+}
+
+check() {
+ cd "$srcdir/$_gitname"
+ make test
+}
+
+package() {
+ cd "$srcdir/$_gitname"
+ make install prefix="$pkgdir/usr"
+}