[arch-commits] Commit in pysmbc/repos (4 files)
Felix Yan
fyan at archlinux.org
Sat Sep 19 13:52:02 UTC 2015
Date: Saturday, September 19, 2015 @ 15:52:02
Author: fyan
Revision: 246628
archrelease: copy trunk to staging-i686, staging-x86_64
Added:
pysmbc/repos/staging-i686/
pysmbc/repos/staging-i686/PKGBUILD
(from rev 246627, pysmbc/trunk/PKGBUILD)
pysmbc/repos/staging-x86_64/
pysmbc/repos/staging-x86_64/PKGBUILD
(from rev 246627, pysmbc/trunk/PKGBUILD)
-------------------------+
staging-i686/PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++
staging-x86_64/PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 92 insertions(+)
Copied: pysmbc/repos/staging-i686/PKGBUILD (from rev 246627, pysmbc/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD (rev 0)
+++ staging-i686/PKGBUILD 2015-09-19 13:52:02 UTC (rev 246628)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer:
+
+pkgbase=pysmbc
+pkgname=('python2-pysmbc' 'python-pysmbc')
+pkgver=1.0.15.4
+pkgrel=2
+arch=('i686' 'x86_64')
+url="http://pypi.python.org/pypi/pysmbc/"
+license=('GPL')
+makedepends=('python2' 'python' 'smbclient')
+#source=(http://pypi.python.org/packages/source/p/${pkgbase}/${pkgbase}-${pkgver}.tar.bz2{,.asc})
+#md5sums=('7e1d0b5438bf9c2660a60094d7eaabb3'
+# 'SKIP')
+# validpgpkeys=('228521116D3438163C2EA5B916BED1016069BE55') # Tsukasa Hamano
+# Key revoked as of 1.0.15.4
+source=(http://pypi.python.org/packages/source/p/${pkgbase}/${pkgbase}-${pkgver}.tar.bz2)
+md5sums=('7e1d0b5438bf9c2660a60094d7eaabb3')
+
+prepare() {
+ cp -r ${pkgbase}-${pkgver} ${pkgbase}-${pkgver}-python2
+ sed -i 's|/usr/bin/python|/usr/bin/python2|' ${pkgbase}-${pkgver}-python2/smbc/xattr.py
+}
+
+build(){
+ cd ${pkgbase}-${pkgver}
+ python setup.py build
+ cd "${srcdir}"/${pkgbase}-${pkgver}-python2
+ python2 setup.py build
+}
+
+package_python-pysmbc() {
+ pkgdesc="Python 3 bindings for libsmbclient"
+ depends=('python' 'smbclient')
+
+ cd ${pkgbase}-${pkgver}
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-pysmbc() {
+ pkgdesc="Python 2 bindings for libsmbclient"
+ depends=('python2' 'smbclient')
+
+ cd ${pkgbase}-${pkgver}-python2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}
Copied: pysmbc/repos/staging-x86_64/PKGBUILD (from rev 246627, pysmbc/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2015-09-19 13:52:02 UTC (rev 246628)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer:
+
+pkgbase=pysmbc
+pkgname=('python2-pysmbc' 'python-pysmbc')
+pkgver=1.0.15.4
+pkgrel=2
+arch=('i686' 'x86_64')
+url="http://pypi.python.org/pypi/pysmbc/"
+license=('GPL')
+makedepends=('python2' 'python' 'smbclient')
+#source=(http://pypi.python.org/packages/source/p/${pkgbase}/${pkgbase}-${pkgver}.tar.bz2{,.asc})
+#md5sums=('7e1d0b5438bf9c2660a60094d7eaabb3'
+# 'SKIP')
+# validpgpkeys=('228521116D3438163C2EA5B916BED1016069BE55') # Tsukasa Hamano
+# Key revoked as of 1.0.15.4
+source=(http://pypi.python.org/packages/source/p/${pkgbase}/${pkgbase}-${pkgver}.tar.bz2)
+md5sums=('7e1d0b5438bf9c2660a60094d7eaabb3')
+
+prepare() {
+ cp -r ${pkgbase}-${pkgver} ${pkgbase}-${pkgver}-python2
+ sed -i 's|/usr/bin/python|/usr/bin/python2|' ${pkgbase}-${pkgver}-python2/smbc/xattr.py
+}
+
+build(){
+ cd ${pkgbase}-${pkgver}
+ python setup.py build
+ cd "${srcdir}"/${pkgbase}-${pkgver}-python2
+ python2 setup.py build
+}
+
+package_python-pysmbc() {
+ pkgdesc="Python 3 bindings for libsmbclient"
+ depends=('python' 'smbclient')
+
+ cd ${pkgbase}-${pkgver}
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-pysmbc() {
+ pkgdesc="Python 2 bindings for libsmbclient"
+ depends=('python2' 'smbclient')
+
+ cd ${pkgbase}-${pkgver}-python2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list