summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3d0537d86b986ec65bfc52911235b3c38477def4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Maintainer: Yuvraj Mishra <yuvrajmishrawork@gmail.com>

pkgname=python2-bin
_pkgname=python2
pkgver=2.7.18_1
_pybasever=2.7
pkgrel=1
pkgdesc="Python2 binaries for x86_64"
arch=('x86_64')
url="https://python.org"
license=('PSF')
groups=()
depends=('bzip2' 'expat' 'gdbm' 'libffi' 'libnsl' 'libxcrypt' 'openssl' 'sqlite' 'zlib')
makedepends=()
checkdepends=()
optdepends=()
provides=('python2')
conflicts=('python2')
replaces=()
backup=()
options=()
install=
changelog=
noextract=()
validpgpkeys=()
source=("https://github.com/VanillaBase1lb/python2-bin-aur/releases/download/$pkgver/python2-build.tar.gz")
md5sums=('d1a5929835018fa5ca18853c49c972ad')


package() {

	rm python2-build/bin/2to3
	rm python2-build/bin/idle
	rm python2-build/bin/pydoc
	rm python2-build/bin/python
	rm python2-build/bin/python-config
	rm python2-build/lib/pkgconfig/python.pc
	rm python2-build/share/man/man1/python.1

	sed -i "s|/mnt/storage/temp/python2-build|/usr|" python2-build/bin/python${_pybasever}-config
	sed -i "s|/mnt/storage/temp/python2-build|/usr|" python2-build/lib/pkgconfig/python-${_pybasever}.pc

	# copy recursively without overwriting
	mkdir -p $pkgdir/usr
	cp -rn python2-build/* "${pkgdir}/usr/" || true
}