diff options
author | Sebastian Reuße | 2015-09-03 14:42:09 +0200 |
---|---|---|
committer | Sebastian Reuße | 2015-09-03 14:42:09 +0200 |
commit | 772297159d0fad05604d109a12e2204b8ad72389 (patch) | |
tree | c03c9b6326402c3009880200e79517c6f0a47ecb | |
download | aur-772297159d0fad05604d109a12e2204b8ad72389.tar.gz |
Init.
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 41 |
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..03acf9ba5995 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = git-issues-git + pkgdesc = A distributed issue tracking system based on Git repositories, written in Python. + pkgver = r107.389658d + pkgrel = 1 + url = https://github.com/duplys/git-issues + arch = any + license = custom:BSD + makedepends = git + depends = python2 + provides = git-issues + conflicts = git-issues + source = git+https://github.com/duplys/git-issues + md5sums = SKIP + +pkgname = git-issues-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..05d043464581 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Sebastian Reuße <seb@wirrsal.net> +pkgname=git-issues-git +_gitname=git-issues +pkgver=r107.389658d +pkgrel=1 +pkgdesc="A distributed issue tracking system based on Git repositories, written in Python." +arch=(any) +url=https://github.com/duplys/git-issues +license=(custom:BSD) +depends=(python2) +makedepends=(git) +provides=(git-issues) +conflicts=(git-issues) +source=(git+https://github.com/duplys/git-issues) +md5sums=(SKIP) + +pkgver() { + cd "$_gitname" + commit=$(git rev-list --count master) + hash=$(git rev-parse --short HEAD) + echo "r$commit.$hash" +} + +package() { + cd "$srcdir/$_gitname" + + python2 -m compileall *.py + mkdir -p "$pkgdir"/opt/git-issues + install *.{py,pyc} "$pkgdir"/opt/git-issues + + sed -i 's|/usr/bin/env python|/usr/bin/env python2|' git-issues *.py + install -m755 git-issues "$pkgdir"/opt/git-issues + mkdir -p "$pkgdir"/usr/bin + ln -s /opt/git-issues/git-issues "$pkgdir"/usr/bin + + # git-issues wants these to be installed in the same path as the + # executable. It will copy these into repositories where it is used. + install README README.textile LICENSE "$pkgdir"/opt/git-issues + + install -D LICENSE "$pkgdir"/usr/share/licenses/git-issues-git/LICENSE +} |