Skip to content
This repository has been archived by the owner on Dec 4, 2021. It is now read-only.

Commit

Permalink
pyosmium
Browse files Browse the repository at this point in the history
  • Loading branch information
dead10ck committed Mar 7, 2021
1 parent 902f808 commit 90156de
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions packages/pyosmium/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
TERMUX_PKG_HOMEPAGE=https://osmcode.org/pyosmium/
TERMUX_PKG_DESCRIPTION="Python module allows you to access some of the features of the Osmium Library from Python code"
TERMUX_PKG_LICENSE="BSD 2-Clause"
TERMUX_PKG_LICENSE_FILE="LICENSE.TXT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=3.1.3
TERMUX_PKG_SRCURL=https://github.com/osmcode/pyosmium/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=d9f107556de389a6b7c82e8342c5e20dc41a776dc039ef82589b0584b6f5ba60
TERMUX_PKG_DEPENDS="libosmium, libprotozero, pybind11, boost, libbz2, zlib, liblz4, libexpat, python"

_PYTHON_VERSION="3.9"

termux_step_configure() {
return
}

termux_step_make() {
return
}

termux_step_make_install() {
cd $TERMUX_PKG_SRCDIR
export PYTHONPATH=${TERMUX_PKG_MASSAGEDIR}${TERMUX_PREFIX}/lib/python${_PYTHON_VERSION}/site-packages/
export CFLAGS=-I$TERMUX_PREFIX/include/python${_PYTHON_VERSION}

python setup.py install \
--prefix=${TERMUX_PKG_MASSAGEDIR}${TERMUX_PREFIX} \
--force

cd ${TERMUX_PKG_MASSAGEDIR}
find . -type d -name __pycache__ -prune -exec rm -rf "{}" \;
}

0 comments on commit 90156de

Please sign in to comment.