diff options
author | Michel Zou | 2018-07-16 18:40:29 +0200 |
---|---|---|
committer | Michel Zou | 2018-07-16 18:40:29 +0200 |
commit | 4b27e4817cccdb3643da42aedf42ae663a462996 (patch) | |
tree | cf1e114533bdd2ed73f03865b2fdb02142f23307 | |
parent | 3d12038fc52a550347d2ed16beed7a6792aa4952 (diff) | |
download | aur-4b27e4817cccdb3643da42aedf42ae663a462996.tar.gz |
wine wrapper
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 12 | ||||
-rw-r--r-- | wine-python.sh | 8 |
3 files changed, 21 insertions, 6 deletions
@@ -1,15 +1,14 @@ -# Generated by mksrcinfo v8 -# Thu Jun 28 16:36:55 UTC 2018 pkgbase = mingw-w64-python35-bin pkgdesc = Next generation of the python high-level scripting language (native MSVC version) (mingw-w64) pkgver = 3.5.4 - pkgrel = 1 + pkgrel = 2 url = http://www.python.org/ arch = any license = PSF makedepends = mingw-w64-tools makedepends = mingw-w64-binutils depends = mingw-w64-crt + optdepends = mingw-w64-wine: runtime support noextract = python-3.5.4-embed-win32.zip noextract = python-3.5.4-embed-amd64.zip options = staticlibs @@ -18,9 +17,11 @@ pkgbase = mingw-w64-python35-bin source = https://www.python.org/ftp/python/3.5.4/python-3.5.4-embed-win32.zip source = https://www.python.org/ftp/python/3.5.4/python-3.5.4-embed-amd64.zip source = https://www.python.org/ftp/python/3.5.4/Python-3.5.4.tgz + source = wine-python.sh sha256sums = 61ca8e983be03a85beadd74da9dd1d38d9cfb23e298b9561482a7f531d48a7b9 sha256sums = 4b649c6ec5b2abfb9fc0f6a6d0dcbd9855d8b06ea03637fd142175822cf842f9 sha256sums = 6ed87a8b6c758cc3299a8b433e8a9a9122054ad5bc8aad43299cff3a53d8ca44 + sha256sums = SKIP pkgname = mingw-w64-python35-bin @@ -1,22 +1,25 @@ pkgname=mingw-w64-python35-bin pkgver=3.5.4 _pybasever=35 -pkgrel=1 +pkgrel=2 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') +optdepends=('mingw-w64-wine: runtime support') makedepends=('mingw-w64-tools' 'mingw-w64-binutils') options=('staticlibs' '!buildflags' '!strip') source=("https://www.python.org/ftp/python/${pkgver}/python-${pkgver}-embed-win32.zip" "https://www.python.org/ftp/python/${pkgver}/python-${pkgver}-embed-amd64.zip" - "https://www.python.org/ftp/python/${pkgver}/Python-${pkgver}.tgz") + "https://www.python.org/ftp/python/${pkgver}/Python-${pkgver}.tgz" + wine-python.sh) noextract=("python-${pkgver}-embed-win32.zip" "python-${pkgver}-embed-amd64.zip") sha256sums=('61ca8e983be03a85beadd74da9dd1d38d9cfb23e298b9561482a7f531d48a7b9' '4b649c6ec5b2abfb9fc0f6a6d0dcbd9855d8b06ea03637fd142175822cf842f9' - '6ed87a8b6c758cc3299a8b433e8a9a9122054ad5bc8aad43299cff3a53d8ca44') + '6ed87a8b6c758cc3299a8b433e8a9a9122054ad5bc8aad43299cff3a53d8ca44' + SKIP) _architectures="i686-w64-mingw32 x86_64-w64-mingw32" @@ -32,6 +35,7 @@ build() { bsdtar -xf "${srcdir}"/python-${pkgver}-embed-${target}.zip gendef python${_pybasever}.dll ${_arch}-dlltool --dllname python${_pybasever}.dll --def python${_pybasever}.def --output-lib libpython${_pybasever}.dll.a + sed "s|@TRIPLE@|${_arch}|g;s|@PYVER@|${_pybasever}|g" "${srcdir}"/wine-python.sh > ${_arch}-python${_pybasever}-bin popd done } @@ -51,5 +55,7 @@ package() { install -m755 python.exe "$pkgdir"/usr/${_arch}/bin/python${_pybasever}.exe install -m644 python${_pybasever}.zip "$pkgdir"/usr/${_arch}/bin/ ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll + install -d "$pkgdir"/usr/bin + install -m755 ${_arch}-python${_pybasever}-bin "$pkgdir"/usr/bin done } diff --git a/wine-python.sh b/wine-python.sh new file mode 100644 index 000000000000..19bb168e7b95 --- /dev/null +++ b/wine-python.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +export PYTHONHOME=/usr/@TRIPLE@ +export PYTHONPATH=/usr/@TRIPLE@/lib/python@PYVER@ + +@TRIPLE@-wine /usr/@TRIPLE@/bin/python@PYVER@.exe "$@" |