summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoreolianoe2016-04-09 13:48:03 +0200
committereolianoe2016-04-09 13:48:03 +0200
commit0d10b8be4ba2b3302355204a14f93dd41eb89ed1 (patch)
treeea6e0ac4f6765bedc2aeb9080c482a294b23c2b6
downloadaur-0d10b8be4ba2b3302355204a14f93dd41eb89ed1.tar.gz
Initial commit as 'vdirsyncer-git'
Formerly named as 'python-vdirsyncer-git'
-rw-r--r--.SRCINFO34
-rw-r--r--.gitignore6
-rw-r--r--PKGBUILD63
3 files changed, 103 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0fe32814d73
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,34 @@
+# Generated by mksrcinfo v8
+# Sat Apr 9 11:44:50 UTC 2016
+pkgbase = vdirsyncer-git
+ pkgdesc = Synchronize CalDAV and CardDAV.
+ pkgver = 0.9.3.r35.g777eb35
+ pkgrel = 1
+ url = https://github.com/pimutils/vdirsyncer
+ arch = i686
+ arch = x86_64
+ license = MIT
+ checkdepends = python-hypothesis>=3.1
+ checkdepends = python-pytest
+ checkdepends = python-pytest-localserver
+ checkdepends = python-pytest-subtesthack
+ makedepends = git
+ makedepends = python-setuptools
+ makedepends = python-sphinx
+ makedepends = python-sphinx_rtd_theme
+ depends = python-click>=5.0
+ depends = python-click-log>=0.1.3
+ depends = python-click-threading>=0.1.2
+ depends = python-lxml>=3.1
+ depends = python-requests>2.9.0
+ depends = python-requests-toolbelt>=0.4.0
+ depends = python-requests-oauthlib
+ depends = python-atomicwrites>=0.1.7
+ depends = python-keyring
+ provides = vdirsyncer
+ conflicts = vdirsyncer
+ source = git://github.com/pimutils/vdirsyncer.git
+ sha256sums = SKIP
+
+pkgname = vdirsyncer-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..c33f1488558
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+*.tar
+*.gz
+*.xz
+vdirsyncer/
+/pkg
+/src
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ec149ba8820
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,63 @@
+# Maintainer: eolianoe <eolianoe At GoogleMAIL DoT com>
+
+_pkgname=vdirsyncer
+pkgname=${_pkgname}-git
+pkgver=0.9.3.r35.g777eb35
+pkgrel=1
+pkgdesc="Synchronize CalDAV and CardDAV."
+arch=('i686' 'x86_64')
+url="https://github.com/pimutils/${_pkgname}"
+license=('MIT')
+depends=("python-click>=5.0" "python-click-log>=0.1.3" "python-click-threading>=0.1.2"
+ "python-lxml>=3.1"
+ "python-requests>2.9.0" "python-requests-toolbelt>=0.4.0" "python-requests-oauthlib"
+ "python-atomicwrites>=0.1.7"
+ "python-keyring")
+makedepends=("git" "python-setuptools"
+ "python-sphinx" 'python-sphinx_rtd_theme')
+checkdepends=("python-hypothesis>=3.1"
+ "python-pytest" "python-pytest-localserver" "python-pytest-subtesthack")
+source=("git://github.com/pimutils/${_pkgname}.git")
+sha256sums=('SKIP')
+conflicts=('vdirsyncer')
+provides=('vdirsyncer')
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
+}
+
+build() {
+ # Build vdirsyncer
+ cd "${srcdir}/${_pkgname}"
+ python setup.py build
+
+ # "Install" development stuff needed to build the man page
+ rm -rf "${srcdir}/develop"
+ mkdir "${srcdir}/develop"
+ export PYTHONPATH="${srcdir}/develop":${PYTHONPATH}
+ python setup.py develop --install-dir="${srcdir}/develop/"
+
+ # Build man page
+ cd "${srcdir}/${_pkgname}/docs"
+ make man SPHINXBUILD=sphinx-build
+}
+
+check(){
+ cd "${srcdir}/${_pkgname}"
+
+ # Needed for the tests, especially when building in clean chroot
+ [[ ${LANG} = C ]] && export LANG=en_US.UTF8
+
+ make test
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}"
+
+ python setup.py install --root="${pkgdir}/" --optimize=1
+
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm644 docs/_build/man/${_pkgname}.1 \
+ "${pkgdir}/usr/share/man/man1/${_pkgname}.1"
+}