diff options
author | tdy | 2017-01-16 04:18:10 -0600 |
---|---|---|
committer | tdy | 2017-01-16 04:18:10 -0600 |
commit | 21e3a024baa05535631081e1c9f15974d05fb8e3 (patch) | |
tree | d83f463a3eb4907535de3b207da5942cdd077d36 | |
download | aur-21e3a024baa05535631081e1c9f15974d05fb8e3.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 31 | ||||
-rw-r--r-- | PKGBUILD | 54 |
2 files changed, 85 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2f055283b492 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,31 @@ +pkgbase = python-git-remote-dropbox-git + pkgdesc = Use a Dropbox (shared) folder as a true Git remote + pkgver = r29.27cb825 + pkgrel = 1 + url = https://github.com/anishathalye/git-remote-dropbox + arch = any + license = MIT + makedepends = python-setuptools + makedepends = python2-setuptools + makedepends = git + source = git+https://github.com/anishathalye/git-remote-dropbox.git + sha256sums = SKIP + +pkgname = python-git-remote-dropbox-git + depends = python-dropbox + depends = git + depends = dropbox + provides = python-git-remote-dropbox + conflicts = python-git-remote-dropbox + conflicts = python2-git-remote-dropbox + conflicts = python2-git-remote-dropbox-git + +pkgname = python2-git-remote-dropbox-git + depends = python2-dropbox + depends = git + depends = dropbox + provides = python2-git-remote-dropbox + conflicts = python-git-remote-dropbox + conflicts = python2-git-remote-dropbox + conflicts = python-git-remote-dropbox-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a8476431b886 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,54 @@ +# Maintainer: archlinux.info:tdy + +pkgbase=python-git-remote-dropbox-git +pkgname=(python-git-remote-dropbox-git python2-git-remote-dropbox-git) +pkgver=r29.27cb825 +pkgrel=1 +pkgdesc="Use a Dropbox (shared) folder as a true Git remote" +arch=(any) +url=https://github.com/anishathalye/git-remote-dropbox +license=(MIT) +makedepends=(python-setuptools python2-setuptools git) +source=(git+https://github.com/anishathalye/git-remote-dropbox.git) +sha256sums=(SKIP) + +pkgver() { + cd git-remote-dropbox + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cp -a git-remote-dropbox{,-py2} +} + +build() { + cd git-remote-dropbox + python setup.py build + + cd ../git-remote-dropbox-py2 + python2 setup.py build +} + +package_python-git-remote-dropbox-git() { + depends=(python-dropbox git dropbox) + provides=(python-git-remote-dropbox) + conflicts=(python-git-remote-dropbox + python2-git-remote-dropbox + python2-git-remote-dropbox-git) + + cd git-remote-dropbox + python setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-git-remote-dropbox-git() { + depends=(python2-dropbox git dropbox) + provides=(python2-git-remote-dropbox) + conflicts=(python-git-remote-dropbox + python2-git-remote-dropbox + python-git-remote-dropbox-git) + + cd git-remote-dropbox-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} |