diff options
author | Michel Zou | 2016-09-26 22:42:07 +0200 |
---|---|---|
committer | Michel Zou | 2016-09-26 22:42:07 +0200 |
commit | 69ca420c43403fcfa09abf1d96b05ea2c1fb728c (patch) | |
tree | 75e2b50e71da2723abb4596bcd93f64a3c90e96c | |
download | aur-69ca420c43403fcfa09abf1d96b05ea2c1fb728c.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 49 |
2 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d6c1f3ca0957 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +# Generated by mksrcinfo v8 +# Mon Sep 26 20:42:07 UTC 2016 +pkgbase = mingw-w64-python34-bin + pkgdesc = Next generation of the python high-level scripting language (native MSVC version) (mingw-w64) + pkgver = 3.3.5 + pkgrel = 1 + url = http://www.python.org/ + arch = any + license = PSF + makedepends = wine + makedepends = mingw-w64-tools + makedepends = mingw-w64-binutils + depends = mingw-w64-crt + options = staticlibs + options = !buildflags + options = !strip + source = http://www.python.org/ftp/python/3.3.5/python-3.3.5.msi + source = http://www.python.org/ftp/python/3.3.5/python-3.3.5.amd64.msi + md5sums = ee4de0c34fd8c575db8a7805e2b9584a + md5sums = ebb3ab0df91389a6dd45317d6f4ac838 + +pkgname = mingw-w64-python34-bin + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4ae98e08be92 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +pkgname=mingw-w64-python34-bin +pkgver=3.3.5 +_pybasever=33 +pkgrel=1 +pkgdesc="Next generation of the python high-level scripting language (native MSVC version) (mingw-w64)" +arch=('any') +license=('PSF') +url="http://www.python.org/" +depends=('mingw-w64-crt') +makedepends=('wine' 'mingw-w64-tools' 'mingw-w64-binutils') +options=('staticlibs' '!buildflags' '!strip') +source=("http://www.python.org/ftp/python/${pkgver}/python-${pkgver}.msi" + "http://www.python.org/ftp/python/${pkgver}/python-${pkgver}.amd64.msi") +md5sums=('ee4de0c34fd8c575db8a7805e2b9584a' + 'ebb3ab0df91389a6dd45317d6f4ac838') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + cd "${srcdir}" + for _arch in ${_architectures}; do + target="" + if test "${_arch}" = x86_64-w64-mingw32 + then + target=".amd64" + fi + mkdir -p "build-${_arch}" && pushd "build-${_arch}" + msiexec /i "${srcdir}"/python-${pkgver}${target}.msi /qb TARGETDIR=$PWD + gendef python${_pybasever}.dll + ${_arch}-dlltool --dllname python${_pybasever}.dll --def python${_pybasever}.def --output-lib libs/libpython${_pybasever}.dll.a + popd + done +} + +package() { + for _arch in ${_architectures}; do + cd "${srcdir}/build-${_arch}" + install -d "$pkgdir"/usr/${_arch}/lib + install -m644 libs/libpython${_pybasever}*.a "$pkgdir"/usr/${_arch}/lib + install -d "$pkgdir"/usr/${_arch}/bin + install -d "$pkgdir"/usr/${_arch}/include + cp -r include "$pkgdir"/usr/${_arch}/include/python${_pybasever} + install -m755 python${_pybasever}.dll "$pkgdir"/usr/${_arch}/bin + cp -r Lib "$pkgdir"/usr/${_arch}/lib/python${_pybasever} + install -m644 DLLs/*.pyd "$pkgdir"/usr/${_arch}/lib/python${_pybasever} + install -m755 python.exe "$pkgdir"/usr/${_arch}/bin/python${_pybasever}.exe + ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll + done +} |