This commit is contained in:
Greg Fodor 2020-05-14 20:07:04 +00:00
Родитель 6209ed5b90
Коммит 589b470ef7
4 изменённых файлов: 111 добавлений и 5 удалений

Просмотреть файл

@ -0,0 +1,20 @@
pkg_name=dbus
pkg_origin=mozillareality
pkg_version="1.13.8"
pkg_maintainer="Mozilla Mixed Reality <mixreality@mozilla.com>"
pkg_license=('GPLv2')
pkg_description="D-Bus is a message bus system, a simple way for applications to talk to one another."
pkg_upstream_url="https://www.freedesktop.org/wiki/Software/dbus/"
pkg_source="https://dbus.freedesktop.org/releases/dbus/${pkg_name}-${pkg_version}.tar.xz"
pkg_shasum="82a89f64e1b55e459725186467770995f33cac5eb8a050b5d8cbeb338078c4f6"
pkg_deps=(core/glibc)
pkg_build_deps=(
core/autoconf
core/automake
core/make
mozillareality/expat
mozillareality/gcc
core/pkg-config
)
pkg_lib_dirs=(lib)
pkg_bin_dirs=(bin)

Просмотреть файл

@ -16,24 +16,25 @@ pkg_shasum="82ee94bf4c01459b6b00cb9db0545c2237921e3060c0b74cff13fbc020cfd999"
pkg_deps=(
mozillareality/coreutils
mozillareality/elfutils
core/glibc
core/glibc/2.27
mozillareality/libffi
mozillareality/libiconv
mozillareality/pcre
core/python
mozillareality/util-linux
mozillareality/zlib
)
pkg_build_deps=(
core/dbus
mozillareality/dbus
mozillareality/python
core/diffutils
core/file
core/gcc
core/gettext
core/libxslt
#core/libxslt
core/make
core/perl
core/pkg-config
core/coreutils
)
pkg_bin_dirs=(bin)
pkg_lib_dirs=(lib)

Просмотреть файл

@ -30,7 +30,6 @@ pkg_build_deps=(
pkg_deps=(
mozillareality/gcc
mozillareality/glib
core/openssl/1.0.2r/20190305210149
core/p11-kit/0.23.10/20190117183627
core/sqlite/3130000/20190115154252
mozillareality/util-linux/2.34

Просмотреть файл

@ -0,0 +1,86 @@
pkg_name=python
pkg_distname=Python
pkg_version=3.7.0
pkg_origin=mozillareality
pkg_maintainer="Mozilla Mixed Reality <mixreality@mozilla.com>"
pkg_license=('Python-2.0')
pkg_description="Python is a programming language that lets you work quickly \
and integrate systems more effectively."
pkg_upstream_url="https://www.python.org"
pkg_dirname="${pkg_distname}-${pkg_version}"
pkg_source="https://www.python.org/ftp/python/${pkg_version}/${pkg_dirname}.tgz"
pkg_shasum="85bb9feb6863e04fb1700b018d9d42d1caac178559ffa453d7e6a436e259fd0d"
pkg_bin_dirs=(bin)
pkg_lib_dirs=(lib)
pkg_include_dirs=(include)
pkg_interpreters=(bin/python bin/python3 bin/python3.7)
pkg_deps=(
core/bzip2
core/expat
core/gcc-libs
core/gdbm
core/glibc
mozillareality/libffi
core/ncurses
mozillareality/openssl
core/readline
core/sqlite
mozillareality/zlib
)
pkg_build_deps=(
core/coreutils
core/diffutils
core/gcc
core/linux-headers
core/make
core/util-linux
)
do_prepare() {
sed -i.bak 's/#zlib/zlib/' Modules/Setup.dist
sed -i -re "/(SSL=|_ssl|-DUSE_SSL|-lssl).*/ s|^#||" Modules/Setup.dist
}
do_build() {
export LDFLAGS="$LDFLAGS -lgcc_s"
# TODO: We should build with `--enable-optimizations`
./configure --prefix="$pkg_prefix" \
--enable-loadable-sqlite-extensions \
--enable-shared \
--with-threads \
--with-system-expat \
--with-system-ffi \
--with-ensurepip
make
}
do_check() {
make test
}
do_install() {
do_default_install
# link pythonx.x to python for pkg_interpreters
local minor=${pkg_version%.*}
local major=${minor%.*}
ln -rs "$pkg_prefix/bin/pip$minor" "$pkg_prefix/bin/pip"
ln -rs "$pkg_prefix/bin/pydoc$minor" "$pkg_prefix/bin/pydoc"
ln -rs "$pkg_prefix/bin/python$minor" "$pkg_prefix/bin/python"
ln -rs "$pkg_prefix/bin/python$minor-config" "$pkg_prefix/bin/python-config"
# Remove idle as we are not building with Tk/x11 support so it is useless
rm -vf "$pkg_prefix/bin/idle$major"
rm -vf "$pkg_prefix/bin/idle$minor"
platlib=$(python -c "import sysconfig;print(sysconfig.get_path('platlib'))")
cat <<EOF > "$platlib/_manylinux.py"
# Disable binary manylinux1(CentOS 5) wheel support
manylinux1_compatible = False
EOF
}