libsixel: fix python lib location

This commit is contained in:
Lucinda May Phipps 2021-10-09 17:08:59 +01:00 committed by GitHub
parent 0f90d32bd9
commit 0d87fffe68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,9 +3,15 @@ TERMUX_PKG_DESCRIPTION="Encoder/decoder implementation for DEC SIXEL graphics"
TERMUX_PKG_LICENSE="MIT" TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>" TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
TERMUX_PKG_VERSION=1.8.6 TERMUX_PKG_VERSION=1.8.6
TERMUX_PKG_REVISION=5 TERMUX_PKG_REVISION=6
TERMUX_PKG_SRCURL=https://github.com/saitoha/libsixel/archive/v$TERMUX_PKG_VERSION.tar.gz TERMUX_PKG_SRCURL=https://github.com/saitoha/libsixel/archive/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=37611d60c7dbcee701346967336dbf135fdd5041024d5f650d52fae14c731ab9 TERMUX_PKG_SHA256=37611d60c7dbcee701346967336dbf135fdd5041024d5f650d52fae14c731ab9
TERMUX_PKG_DEPENDS="libcurl, libjpeg-turbo, libpng" TERMUX_PKG_DEPENDS="libcurl, libjpeg-turbo, libpng"
TERMUX_PKG_BREAKS="libsixel-dev" TERMUX_PKG_BREAKS="libsixel-dev"
TERMUX_PKG_REPLACES="libsixel-dev" TERMUX_PKG_REPLACES="libsixel-dev"
termux_step_pre_configure() {
export PYTHON_VERSION=$(. $TERMUX_SCRIPTDIR/packages/python/build.sh; echo $_MAJOR_VERSION)
export PYTHON=python$PYTHON_VERSION
TERMUX_PKG_RM_AFTER_INSTALL="lib/${PYTHON}/site-packages/libsixel/__pycache__"
}