diff options
author | Chris Severance | 2015-09-08 03:11:11 -0400 |
---|---|---|
committer | Chris Severance | 2015-09-08 03:11:11 -0400 |
commit | 861ea95893c5ff192ed84a30fd685a628c5fff26 (patch) | |
tree | 3edc67d09095c13299f676872c33d97639cfbf91 | |
download | aur-861ea95893c5ff192ed84a30fd685a628c5fff26.tar.gz |
made python2 package, downgrade to 0.3.3
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 45 |
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6bcf779b1199 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = python2-pathspec + pkgdesc = Utility library for gitignore style pattern matching of file paths + pkgver = 0.3.3 + pkgrel = 1 + url = https://github.com/cpburnz/python-path-specification + arch = any + license = custom + makedepends = python2 + makedepends = python2-distribute + source = http://pypi.python.org/packages/source/p/pathspec/pathspec-0.3.3.tar.gz + sha256sums = 38d0613ee2ce75adbbad61a33895c3b88122c768a732fb14800e6f660cc1380b + +pkgname = python2-pathspec + depends = python2 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..24e07b22d64e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com +# From python-cement + +set -u +_pyver="python2" +_pybase='pathspec' +pkgname="${_pyver}-${_pybase}" +pkgver='0.3.3' +pkgrel='1' +pkgdesc='Utility library for gitignore style pattern matching of file paths' +arch=('any') +url='https://github.com/cpburnz/python-path-specification' +license=('custom') #MPL 2.0 +makedepends=("${_pyver}" "${_pyver}-distribute") # same as python-setuptools +_srcdir="${_pybase}-${pkgver}" +#_verwatch=("https://pypi.python.org/simple/${_pybase}/" "${_pybase}-\([0-9\.]\+\)\.tar\.gz" 't') +source=("http://pypi.python.org/packages/source/${_pybase: 0:1}/${_pybase}/${_pybase}-${pkgver}.tar.gz") +sha256sums=('38d0613ee2ce75adbbad61a33895c3b88122c768a732fb14800e6f660cc1380b') + +build() { + set -u + cd "${_srcdir}" + ${_pyver} setup.py build + set +u +} + +check() { + set -u + cd "${_srcdir}" + # If pip is installed, some package tests download missing packages. We can't allow that. + #${_pyver} setup.py test --verbose + set +u +} + +package() { + set -u + depends=("${_pyver}") # "${_pydepends[@]}") + cd "${_srcdir}" + ${_pyver} setup.py install --root="${pkgdir}" + #install -Dpm644 'LICENSE' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + set +u +} +set +u + +# vim:set ts=2 sw=2 et: |