forked from termux/termux-packages
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sh
26 lines (23 loc) · 1.01 KB
/
build.sh
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
TERMUX_PKG_HOMEPAGE="https://salsa.debian.org/apt-team/python-apt"
TERMUX_PKG_DESCRIPTION="Python 3 interface to libapt-pkg"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="Philipp Schmitt <philipp@schmitt.co>"
TERMUX_PKG_VERSION=1.4.0_beta3
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL="https://salsa.debian.org/apt-team/python-apt/-/archive/${TERMUX_PKG_VERSION}/python-apt-${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_SHA256="80489a9e6cd68b3cc03a1a1d33c0f0d99cce99cef15166628d7d0729cd4e506c"
TERMUX_PKG_HOSTBUILD=false
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_DEPENDS="apt, python"
TERMUX_PKG_BUILD_DEPENDS="apt, python"
termux_step_make() {
return
}
termux_step_make_install() {
export PYTHONPATH="${TERMUX_PREFIX}/lib/python3.8/site-packages/"
sed -ri "s|(extra_compile_args=\[)|include_dirs=\['${TERMUX_PREFIX}/include/python3.8/'\, '/home/builder/.termux-build/apt/build/include'], \1|" setup.py
python3.8 setup.py install --prefix="$TERMUX_PREFIX" --force
}
termux_step_post_massage() {
find . -path '*/__pycache__*' -delete
}