PKGBUILDs/aur/python2-path/PKGBUILD

28 lines
881 B
Bash
Raw Normal View History

2015-06-19 00:35:13 +00:00
# Maintainer: vorpalblade <vorpalblade77@gmail.com>
2014-12-06 17:11:50 +00:00
# Contributor: Anxo Beltrán <anxo.beltran.alvarez@gmail.com>
# Contributor: David Danier <david.danier@team23.de>
pkgname=python2-path
2015-06-19 00:35:13 +00:00
pkgver=7.3
pkgrel=1
pkgdesc="path.py provides a class (path) for working with files and directories. Less typing than os.path, more fun, a few new tricks"
2014-11-03 18:59:13 +00:00
arch=('any')
url="https://pypi.python.org/pypi/path.py"
license=('MIT')
depends=('python2')
options=(!emptydirs)
source=(http://pypi.python.org/packages/source/p/path.py/path.py-${pkgver}.zip)
2015-06-19 00:35:13 +00:00
changelog=Changelog
sha256sums=('f7d146f40768e3742199a5316fbe3eb6a6091b9feedcb4b969c7348dc03151e1')
2015-06-19 00:35:13 +00:00
build() {
cd "${srcdir}/path.py-${pkgver}"
python2 setup.py build || return 1
}
package() {
cd ${srcdir}/path.py-${pkgver}
2015-06-19 00:35:13 +00:00
python2 setup.py install --root="${pkgdir}" \
--prefix=/usr \
--compile \
--optimize=1 || return 1
}