desktop/python-yaml/PKGBUILD
AlmAck 08a66c4024 python3 rebuild for 3.5
new pkg added to fullfill checkdepends
new order file python3.order
2016-03-16 22:36:13 +01:00

37 lines
994 B
Bash

# Maintainer: Weng Xuetian <wengxt@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Michal Bozon <michal.bozon__at__gmail.com>
pkgbase=python-yaml
pkgname=(python2-yaml python3-yaml)
pkgver=3.11
pkgrel=2
pkgdesc="Python bindings for YAML, using fast libYAML library"
arch=('x86_64')
url="http://pyyaml.org"
license=('MIT')
makedepends=('python3' 'python2' 'libyaml')
install='python-yaml.install'
source=(http://pyyaml.org/download/pyyaml/PyYAML-$pkgver.tar.gz)
md5sums=('f50e08ef0fe55178479d3a618efe21db')
build() {
true
}
package_python2-yaml() {
depends=('python2' 'libyaml')
cd $srcdir/PyYAML-$pkgver
python2 setup.py install --prefix=/usr --root=$pkgdir
install -m644 -D LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
package_python3-yaml() {
depends=('python3' 'libyaml')
cd $srcdir/PyYAML-$pkgver
python3 setup.py install --prefix=/usr --root=$pkgdir
install -m644 -D LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}