Files
MINGW-packages/mingw-w64-python2-ipaddress/PKGBUILD
2018-06-23 10:43:16 +03:00

31 lines
950 B
Bash

# Maintainer: Frederic Wang <fred.wang@free.fr>
_realname=ipaddress
pkgbase=mingw-w64-python2-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-python2-${_realname}")
pkgver=1.0.22
pkgrel=1
pkgdesc='Port of the 3.3+ ipaddress module to 2.6, 2.7, 3.2 (mingw-w64)'
url='https://github.com/phihag/ipaddress'
license=('Python Software Foundation License')
arch=('any')
makedepends=("${MINGW_PACKAGE_PREFIX}-python2")
source=("https://pypi.io/packages/source/i/${_realname}/${_realname}-${pkgver}.tar.gz")
sha256sums=('b146c751ea45cad6188dd6cf2d9b757f6f4f8d6ffb96a023e6f2e26eea02a72c')
prepare() {
cd ${srcdir}
cp -r ${_realname}-${pkgver} build-python2
}
build() {
cd ${srcdir}/build-python2
${MINGW_PREFIX}/bin/python2 setup.py build
}
package() {
cd ${srcdir}/build-python2
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
${MINGW_PREFIX}/bin/python2 setup.py install --prefix=${MINGW_PREFIX} --root="${pkgdir}"
}