summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbdo Roig-Maranges2016-04-03 01:11:17 +0200
committerAbdo Roig-Maranges2016-04-03 01:11:17 +0200
commit14a18add412ebf02f0c761fc51e10042f9a0a8e5 (patch)
tree1e8323754ea8e106a4813a89ccb6196ffa9e0fa2
downloadaur-14a18add412ebf02f0c761fc51e10042f9a0a8e5.tar.gz
Initial commit
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD45
2 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e87c6221d16
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = git-spindle-git
+ pkgdesc = Git subcommands for integrating with central services like github, gitlab and bitbucket
+ pkgver = 3.2
+ pkgrel = 1
+ url = http://github.com/seveas/git-spindle
+ arch = any
+ license = GPLv3
+ makedepends = make
+ makedepends = python-sphinx
+ depends = git
+ depends = python
+ depends = python-github3.py
+ depends = python-whelk
+ depends = python-docopt
+ provides = git-spindle
+ conflicts = git-spindle
+ source = git+https://github.com/seveas/git-spindle.git
+ md5sums = SKIP
+
+pkgname = git-spindle-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b27fc1db10c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Abdó Roig-Maranges <abdo.roig@gmail.com>
+
+pkgname=git-spindle-git
+pkgver=3.2
+pkgrel=1
+pkgdesc="Git subcommands for integrating with central services like github, gitlab and bitbucket"
+arch=('any')
+url="http://github.com/seveas/git-spindle"
+license=('GPLv3')
+depends=('git' 'python' 'python-github3.py' 'python-whelk' 'python-docopt')
+makedepends=('make' 'python-sphinx')
+optdepends=()
+provides=('git-spindle')
+conflicts=('git-spindle')
+source=("git+https://github.com/seveas/git-spindle.git")
+md5sums=('SKIP')
+
+pkgver() {
+ git --git-dir="$srcdir/git-spindle/.git" describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ # NOTE: Since we only build the man page, we tweak docs configuration so that
+ # it does not require a sphinx theme.
+ sed -i '/csp/d' "$srcdir/git-spindle/docs/conf.py"
+}
+
+build() {
+ cd "$srcdir/git-spindle"
+ python setup.py build
+
+ cd "$srcdir/git-spindle/docs"
+ make man
+}
+
+package() {
+ cd "$srcdir/git-spindle"
+ python setup.py install --prefix=/usr --root="$pkgdir"
+
+ cd "$srcdir/git-spindle/docs"
+ install -d "$pkgdir/usr/share/man/man1/"
+ install -m644 _build/man/*.1 "$pkgdir/usr/share/man/man1/"
+}
+
+# vim:set ts=2 sw=2 et: