diff options
author | Michel Zou | 2016-11-20 11:20:22 +0100 |
---|---|---|
committer | Michel Zou | 2016-11-20 11:20:22 +0100 |
commit | 758ce2a7759c978d4db95af53801c9707212bef4 (patch) | |
tree | d164e8fb276a656c648d55ee114142f418f14c9f | |
download | aur-758ce2a7759c978d4db95af53801c9707212bef4.tar.gz |
initial import
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 50 |
2 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..37e7446847fb --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +# Generated by mksrcinfo v8 +# Sun Nov 20 10:20:22 UTC 2016 +pkgbase = python-pygmail-git + pkgdesc = A Pythonic interface for Google Mail + pkgver = r73.4626823 + pkgrel = 1 + url = http://trac.mystic.cacr.caltech.edu/project/pygmail/wiki.html + arch = any + license = MIT + makedepends = python-setuptools + makedepends = python2-setuptools + provides = python-pygmail + conflicts = python-pygmail + source = git+https://github.com/charlierguo/gmail.git + md5sums = SKIP + +pkgname = python-pygmail-git + depends = python + +pkgname = python2-pygmail-git + depends = python2 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1931b2e1ed77 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +pkgbase=python-pygmail-git +pkgname=('python-pygmail-git' 'python2-pygmail-git') +pkgver=r73.4626823 +pkgrel=1 +pkgdesc="A Pythonic interface for Google Mail" +url="http://trac.mystic.cacr.caltech.edu/project/pygmail/wiki.html" +arch=(any) +license=('MIT') +makedepends=('python-setuptools' 'python2-setuptools') +conflicts=('python-pygmail') +provides=('python-pygmail') +source=("git+https://github.com/charlierguo/gmail.git") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/gmail" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "${srcdir}"/gmail + + # Python 3 Port + wget https://github.com/charlierguo/gmail/pull/48.patch + patch -p1 -i 48.patch +} + +build() { + cp -r "${srcdir}"/gmail "${srcdir}"/gmail-py2 + + cd "${srcdir}"/gmail + python setup.py build + + cd "${srcdir}"/gmail-py2 + python2 setup.py build +} + +package_python-pygmail-git() { + depends=('python') + + cd "${srcdir}/gmail" + python setup.py install --root=${pkgdir} --optimize=1 +} + +package_python2-pygmail-git() { + depends=('python2') + + cd "${srcdir}/gmail" + python2 setup.py install --root=${pkgdir} --optimize=1 +} |