git » python.git » main » tree

[main] / PKGBUILD

pkgname=python
_pkgname=Python
pkgver=3.11.9
pkgrel=3
arch=('armv7h' 'aarch64')
license=('unknown')
source=("$_pkgname-$pkgver.tar.xz")

build() {
	cd "$_pkgname-$pkgver"
	./configure --prefix=/usr        \
            --enable-shared      \
            --with-system-expat  \
            --with-system-ffi    \
            --enable-optimizations
	make
}

package() {
	cd "$_pkgname-$pkgver"
	make DESTDIR="$pkgdir/" install
	ln -s python3 "$pkgdir"/usr/bin/python
	mkdir -p "$pkgdir"/etc
	cat > "$pkgdir"/etc/pip.conf << EOF
[global]
root-user-action = ignore
disable-pip-version-check = true
EOF

}
sha256sums=('9b1e896523fc510691126c864406d9360a3d1e986acbda59cda57b5abda45b87')