summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Zou2021-01-11 09:14:27 +0100
committerMichel Zou2021-01-11 09:14:27 +0100
commitbf2e8c841e65a8cb4332d1a1efb0c507c39c147b (patch)
treeb4b100ed6dd7f8b7d47071d0836c10e37e8ef310
parentf47292c05213ac1f39489adcd2a0ce00f0c702f4 (diff)
downloadaur-bf2e8c841e65a8cb4332d1a1efb0c507c39c147b.tar.gz
python3.dll
-rw-r--r--PKGBUILD7
1 files changed, 4 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ac7dbd09604..e309bd1ea68 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -37,8 +37,10 @@ build() {
fi
mkdir -p "build-${_arch}" && pushd "build-${_arch}"
bsdtar -xf "${srcdir}"/python-${pkgver}-embed-${target}.zip
+ gendef python3.dll
gendef python${_pybasever}.dll
${_arch}-dlltool --dllname python${_pybasever}.dll --def python${_pybasever}.def --output-lib libpython${_pybasever}.dll.a
+ ${_arch}-dlltool --dllname python3.dll --def python3.def --output-lib libpython3.dll.a
sed "s|@TRIPLE@|${_arch}|g;s|@PYVER@|${_pybasever}|g" "${srcdir}"/wine-python.sh > ${_arch}-python${_pybasever}-bin
popd
done
@@ -48,19 +50,18 @@ package() {
for _arch in ${_architectures}; do
cd "${srcdir}/Python-${pkgver}/build-${_arch}"
install -d "$pkgdir"/usr/${_arch}/lib
- install -m644 libpython${_pybasever}*.a "$pkgdir"/usr/${_arch}/lib
+ install -m644 libpython*.a "$pkgdir"/usr/${_arch}/lib
install -d "$pkgdir"/usr/${_arch}/bin
install -d "$pkgdir"/usr/${_arch}/include/python${_pybasever}
cp -r ../Include/* "$pkgdir"/usr/${_arch}/include/python${_pybasever}
install -m644 ../PC/pyconfig.h "$pkgdir"/usr/${_arch}/include/python${_pybasever}
- install -m755 python${_pybasever}.dll "$pkgdir"/usr/${_arch}/bin
+ install -m755 python*.dll "$pkgdir"/usr/${_arch}/bin
install -d "$pkgdir"/usr/${_arch}/lib/python${_pybasever}
install -m644 *.pyd "$pkgdir"/usr/${_arch}/lib/python${_pybasever}
install -m755 python.exe "$pkgdir"/usr/${_arch}/bin/python${_pybasever}.exe
install -m644 python${_pybasever}.zip "$pkgdir"/usr/${_arch}/bin/
install -d "$pkgdir"/usr/bin
install -m755 ${_arch}-python${_pybasever}-bin "$pkgdir"/usr/bin
- pushd "$pkgdir"/usr/${_arch}/bin/
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
done
}