[arch-commits] Commit in python-evdev/repos (4 files)
Jan Steffens
heftig at archlinux.org
Thu Oct 19 08:52:58 UTC 2017
Date: Thursday, October 19, 2017 @ 08:52:58
Author: heftig
Revision: 308249
archrelease: copy trunk to extra-i686, extra-x86_64
Added:
python-evdev/repos/extra-i686/
python-evdev/repos/extra-i686/PKGBUILD
(from rev 308248, python-evdev/trunk/PKGBUILD)
python-evdev/repos/extra-x86_64/
python-evdev/repos/extra-x86_64/PKGBUILD
(from rev 308248, python-evdev/trunk/PKGBUILD)
-----------------------+
extra-i686/PKGBUILD | 49 ++++++++++++++++++++++++++++++++++++++++++++++++
extra-x86_64/PKGBUILD | 49 ++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 98 insertions(+)
Copied: python-evdev/repos/extra-i686/PKGBUILD (from rev 308248, python-evdev/trunk/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD (rev 0)
+++ extra-i686/PKGBUILD 2017-10-19 08:52:58 UTC (rev 308249)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+
+pkgbase=python-evdev
+pkgname=(python-evdev python2-evdev)
+pkgver=0.7.0
+pkgrel=1
+pkgdesc="Python bindings for the Linux input subsystem"
+arch=(i686 x86_64)
+url="https://python-evdev.readthedocs.io/en/latest/"
+license=(BSD)
+makedepends=(python python2 git)
+_commit=36dda463c1777cea8521317b19a9283431a77a32 # tags/v0.7.0
+source=("$pkgbase::git+https://github.com/gvalkov/python-evdev#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $pkgbase
+ git describe --tags | sed 's/^v//;s/-/+/g'
+}
+
+prepare() {
+ cp -a $pkgbase python2
+ cp -a $pkgbase python3
+}
+
+build() {
+ cd python3
+ python3 setup.py build
+
+ cd ../python2
+ python2 setup.py build
+}
+
+package_python-evdev() {
+ depends=(python)
+
+ cd python3
+ python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dt "$pkgdir/usr/share/licenses/python-evdev" -m644 LICENSE
+}
+
+package_python2-evdev() {
+ depends=(python2)
+
+ cd python2
+ python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dt "$pkgdir/usr/share/licenses/python2-evdev" -m644 LICENSE
+}
Copied: python-evdev/repos/extra-x86_64/PKGBUILD (from rev 308248, python-evdev/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD (rev 0)
+++ extra-x86_64/PKGBUILD 2017-10-19 08:52:58 UTC (rev 308249)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+
+pkgbase=python-evdev
+pkgname=(python-evdev python2-evdev)
+pkgver=0.7.0
+pkgrel=1
+pkgdesc="Python bindings for the Linux input subsystem"
+arch=(i686 x86_64)
+url="https://python-evdev.readthedocs.io/en/latest/"
+license=(BSD)
+makedepends=(python python2 git)
+_commit=36dda463c1777cea8521317b19a9283431a77a32 # tags/v0.7.0
+source=("$pkgbase::git+https://github.com/gvalkov/python-evdev#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $pkgbase
+ git describe --tags | sed 's/^v//;s/-/+/g'
+}
+
+prepare() {
+ cp -a $pkgbase python2
+ cp -a $pkgbase python3
+}
+
+build() {
+ cd python3
+ python3 setup.py build
+
+ cd ../python2
+ python2 setup.py build
+}
+
+package_python-evdev() {
+ depends=(python)
+
+ cd python3
+ python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dt "$pkgdir/usr/share/licenses/python-evdev" -m644 LICENSE
+}
+
+package_python2-evdev() {
+ depends=(python2)
+
+ cd python2
+ python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dt "$pkgdir/usr/share/licenses/python2-evdev" -m644 LICENSE
+}
More information about the arch-commits
mailing list