mingw-w64-python315-bin
LOW
maintainer xantares
0 votes
scanned 2026-10-18 09:21:55.083363
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
pkgname=mingw-w64-python315-bin
2
pkgver=3.15.0
3
_pybasever=315
4
pkgrel=1
5
pkgdesc="The Python programming language (native MSVC version) (mingw-w64)"
6
arch=('any')
7
license=('PSF')
8
url="http://www.python.org/"
9
depends=('mingw-w64-openssl')
10
optdepends=('mingw-w64-wine: runtime support')
11
makedepends=('mingw-w64-tools' 'mingw-w64-binutils')
12
options=('staticlibs' '!buildflags' '!strip')
13
source=("https://www.python.org/ftp/python/${pkgver}/python-${pkgver}-embed-win32.zip"
14
"https://www.python.org/ftp/python/${pkgver}/python-${pkgver}-embed-amd64.zip"
15
"https://www.python.org/ftp/python/${pkgver}/Python-${pkgver}.tgz"
16
wine-python.sh)
17
noextract=("python-${pkgver}-embed-win32.zip"
18
"python-${pkgver}-embed-amd64.zip")
19
sha256sums=('da1ca8f1a491444b2a227b898caa9c44537ac27dcf27cff58347f3b4119f79ad'
20
'a6999bcbcbe56f937159ef79c2630260eca99f65f7860bc5cd20430324079a44'
21
'438596cac081036d3c1d532ab7e7335eeb35567bc961749a0d5797176db0db68'
22
'a76a4715e87d3ed4aca6babc8715de8de94513dae4c683c1681551c43698b5ae')
23
24
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
25
26
build() {
27
cd "${srcdir}/Python-${pkgver}"
28
for _arch in ${_architectures}; do
29
target="win32"
30
if test "${_arch}" = x86_64-w64-mingw32
31
then
32
target="amd64"
33
fi
34
mkdir -p "build-${_arch}" && pushd "build-${_arch}"
35
bsdtar -xf "${srcdir}"/python-${pkgver}-embed-${target}.zip
36
gendef python3.dll
37
gendef python${_pybasever}.dll
38
${_arch}-dlltool --dllname python${_pybasever}.dll --def python${_pybasever}.def --output-lib libpython${_pybasever}.dll.a
39
${_arch}-dlltool --dllname python3.dll --def python3.def --output-lib libpython3.dll.a
40
sed "s|@TRIPLE@|${_arch}|g;s|@PYVER@|${_pybasever}|g" "${srcdir}"/wine-python.sh > ${_arch}-python${_pybasever}-bin
41
popd
42
done
43
}
44
45
package() {
46
for _arch in ${_architectures}; do
47
cd "${srcdir}/Python-${pkgver}/build-${_arch}"
48
install -d "$pkgdir"/usr/${_arch}/lib
49
install -m644 libpython*.a "$pkgdir"/usr/${_arch}/lib
50
install -d "$pkgdir"/usr/${_arch}/bin
51
install -d "$pkgdir"/usr/${_arch}/include/python${_pybasever}
52
cp -r ../Include/* "$pkgdir"/usr/${_arch}/include/python${_pybasever}
53
chmod a+r -R "$pkgdir"/usr/${_arch}/include
54
chmod a+x "$pkgdir"/usr/${_arch}/include/python${_pybasever}/{cpython,internal}
55
install -m644 ../PC/pyconfig.h "$pkgdir"/usr/${_arch}/include/python${_pybasever}/pyconfig.h
56
install -m755 python*.dll "$pkgdir"/usr/${_arch}/bin
57
install -d "$pkgdir"/usr/${_arch}/lib/python${_pybasever}
58
install -m644 *.pyd "$pkgdir"/usr/${_arch}/lib/python${_pybasever}
59
install -m755 python.exe "$pkgdir"/usr/${_arch}/bin/python${_pybasever}.exe
60
install -m644 python${_pybasever}.zip "$pkgdir"/usr/${_arch}/bin/
61
install -d "$pkgdir"/usr/bin
62
install -m755 ${_arch}-python${_pybasever}-bin "$pkgdir"/usr/bin
63
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
64
done
65
}
66
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-18 09:21:55 | Low | 1 |