Date: Tuesday, March 15, 2016 @ 00:18:26
  Author: bgyorgy
Revision: 166786

upgpkg: python2-pam 0.1.4-3

Add license file

Added:
  python2-pam/trunk/LICENSE
Modified:
  python2-pam/trunk/PKGBUILD

----------+
 LICENSE  |    7 +++++++
 PKGBUILD |   16 ++++++++++------
 2 files changed, 17 insertions(+), 6 deletions(-)

Added: LICENSE
===================================================================
--- LICENSE                             (rev 0)
+++ LICENSE     2016-03-14 23:18:26 UTC (rev 166786)
@@ -0,0 +1,7 @@
+Copyright (C) 2007-2009 Chris AtLee <ch...@atlee.ca>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy 
of this software and associated documentation files (the "Software"), to deal 
in the Software without restriction, including without limitation the rights to 
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 
of the Software, and to permit persons to whom the Software is furnished to do 
so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all 
copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 
SOFTWARE.

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2016-03-14 23:11:06 UTC (rev 166785)
+++ PKGBUILD    2016-03-14 23:18:26 UTC (rev 166786)
@@ -1,3 +1,4 @@
+# $Id$
 # Maintainer: Alexandre Filgueira <alexfilgue...@antergos.com>
 # Contributor: kozec <kozec at kozec dot com>
 # Contributor: twa022 <twa022 at gmail dot com>
@@ -5,7 +6,7 @@
 _modulename=pam
 pkgname=python2-${_modulename}
 pkgver=0.1.4
-pkgrel=2
+pkgrel=3
 pkgdesc="Module that provides an authenticate function that allows the caller 
to authenticate a given username / password against the PAM system on Linux."
 url="http://atlee.ca/software/pam/";
 license=('MIT')
@@ -12,17 +13,20 @@
 arch=('any')
 depends=('python2' 'pam')
 makedepends=('python2-distribute')
-source=("http://pypi.python.org/packages/source/${_modulename:0:1}/${_modulename}/${_modulename}-${pkgver}.tar.gz";)
-sha256sums=('35e88575afc37a2a5f96e20b22fa55d3e3213370d4ce640af1597c2a1dde226b')
+source=("http://pypi.python.org/packages/source/${_modulename:0:1}/${_modulename}/${_modulename}-${pkgver}.tar.gz";
+        'LICENSE')
+sha256sums=('35e88575afc37a2a5f96e20b22fa55d3e3213370d4ce640af1597c2a1dde226b'
+            'd703379f36d2e58a2343fd1992835ab627324a758189f48479b50dc9eedd6cdc')
 
 build() {
-       cd $srcdir/${_modulename}-${pkgver}
+       cd "$srcdir/${_modulename}-${pkgver}"
        python2 setup.py build
 }
 
 package() {
-       cd $srcdir/${_modulename}-${pkgver}
-       python2 setup.py install --root=$pkgdir
+       cd "$srcdir/${_modulename}-${pkgver}"
+       python2 setup.py install --root="$pkgdir"
+       install -Dm644 "$srcdir/LICENSE" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }
 
 

Reply via email to