summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorclintval2018-04-24 14:02:14 -0700
committerclintval2018-04-24 14:02:14 -0700
commit2f4e5458de63d4c9d15390e9db386300676c2495 (patch)
treed7052b4d6987814024ec1a0649775485be2b03a3
downloadaur-2f4e5458de63d4c9d15390e9db386300676c2495.tar.gz
First commit with PKGBUILD and .SRCINFO
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD51
2 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..04e91c2d3be
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = python-notifiers
+ pkgdesc = Python logging library for easily sending notifications
+ pkgver = 0.6.4
+ pkgrel = 1
+ url = https://pypi.python.org/pypi/notifiers
+ arch = any
+ license = MIT
+ makedepends = python
+ makedepends = python-setuptools
+ makedepends = python2
+ makedepends = python2-setuptools
+ options = !emptydirs
+ source = python-notifiers-0.6.4.tar.gz::https://pypi.io/packages/source/n/notifiers/notifiers-0.6.4.tar.gz
+ sha256sums = 477c779aa0f58a6e20c574892a0ff8f0bd6e618f730d5ee673af8e731e1abd22
+
+pkgname = python-notifiers
+ depends = python
+ depends = python-click
+ depends = python-requests
+
+pkgname = python2-notifiers
+ depends = python2
+ depends = python2-click
+ depends = python2-requests
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a4a347c06c8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,51 @@
+# Maintainer: Clint Valentine <valentine.clint@gmail.com>
+
+_name=notifiers
+pkgbase='python-notifiers'
+pkgname=('python-notifiers' 'python2-notifiers')
+pkgver=0.6.4
+pkgrel=1
+pkgdesc="Python logging library for easily sending notifications"
+arch=('any')
+url="https://pypi.python.org/pypi/notifiers"
+license=('MIT')
+makedepends=(
+ 'python' 'python-setuptools'
+ 'python2' 'python2-setuptools')
+options=(!emptydirs)
+source=("${pkgname}"-"${pkgver}".tar.gz::https://pypi.io/packages/source/"${_name:0:1}"/"${_name}"/"${_name}"-"${pkgver}".tar.gz)
+sha256sums=('477c779aa0f58a6e20c574892a0ff8f0bd6e618f730d5ee673af8e731e1abd22')
+
+prepare() {
+ cp -a "${_name}"-"${pkgver}"{,-py2}
+}
+
+build(){
+ cd "${srcdir}"/"${_name}"-"${pkgver}"
+ python setup.py build
+
+ cd "${srcdir}"/"${_name}"-"${pkgver}"-py2
+ python2 setup.py build
+}
+
+package_python2-notifiers() {
+ depends=(
+ 'python2'
+ 'python2-click'
+ 'python2-requests')
+
+ cd "${_name}"-"${pkgver}"-py2
+ python2 setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
+}
+
+package_python-notifiers() {
+ depends=(
+ 'python'
+ 'python-click'
+ 'python-requests')
+
+ cd "${_name}"-"${pkgver}"
+ python setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
+}