summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBatuhan Ba┼čerdem2020-09-25 12:25:42 -0400
committerBatuhan Ba┼čerdem2020-09-25 12:25:42 -0400
commitbb8a5fc9afe1a7c8653082b17e9e213472662837 (patch)
tree4c57569ca6ddf8485f4b47e8e6321ae5c3085ff5
downloadaur-python-dbus-next-git.tar.gz
Initial commit
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD40
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e4db48bf1c9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = python-dbus-next-git
+ pkgdesc = The next great DBus library for Python with asyncio support
+ pkgver = 0.1.4.r0.g073d837
+ pkgrel = 1
+ url = https://github.com/altdesktop/python-dbus-next
+ arch = any
+ license = MIT
+ makedepends = git
+ makedepends = python-setuptools
+ makedepends = python-pytest
+ depends = python
+ provides = python-dbus-next
+ conflicts = python-dbus-next
+ source = git+https://github.com/altdesktop/python-dbus-next
+ md5sums = SKIP
+
+pkgname = python-dbus-next-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f371a165b8d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Batuhan Baserdem <lastname dot firstname at gmail>
+
+_name='python-dbus-next'
+pkgname="${_name}-git"
+provides=("${_name}")
+conflicts=("${_name}")
+pkgver=0.1.4.r0.g073d837
+pkgrel=1
+pkgdesc='The next great DBus library for Python with asyncio support'
+arch=('any')
+url="https://github.com/altdesktop/${_name}"
+license=('MIT')
+source=("git+${url}")
+makedepends=('git' 'python-setuptools' 'python-pytest')
+depends=('python')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_name}"
+ git describe --long --tags | sed 's|\([^-]*-g\)|r\1|;s|-|.|g;s|^v||g'
+}
+
+build() {
+ cd "${srcdir}/${_name}"
+ python setup.py build
+}
+
+#check(){
+# cd "${srcdir}/${_name}"
+# python setup.py install --root="${srcdir}/${_name}/tmp_install"
+# pysys="$(python -c 'import sys; print(sys.version_info.minor)')"
+# pydir="${srcdir}/${_name}/tmp_install/usr/lib/python${pysys}/site-packages"
+# PYTHONPATH="${pydir}:${PYTONPATH}" pytest
+#}
+
+package() {
+ cd "${srcdir}/${_name}"
+ python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_name}/LICENSE"
+}