python-lxml: Add package for yelp-tools
This commit is contained in:
33
python-lxml/PKGBUILD
Normal file
33
python-lxml/PKGBUILD
Normal file
@@ -0,0 +1,33 @@
|
||||
# Maintainer: Biswapriyo Nath <nathbappai@gmail.com>
|
||||
|
||||
_realname=lxml
|
||||
pkgbase="python-${_realname}"
|
||||
pkgname=("python-${_realname}")
|
||||
pkgver=4.8.0
|
||||
pkgrel=1
|
||||
pkgdesc="Python binding for the libxml2 and libxslt libraries"
|
||||
arch=('any')
|
||||
url="https://lxml.de/"
|
||||
license=('spdx:BSD-3-Clause')
|
||||
depends=("python" "libxslt" "libxml2")
|
||||
makedepends=("gcc" "cython" "libxslt-devel" "libxml2-devel" "pkg-config" "python-setuptools")
|
||||
source=("https://github.com/lxml/lxml/archive/${_realname}-${pkgver}.tar.gz")
|
||||
sha256sums=('8d2b999f5c8a8a70a28a3875e5d1bf27c0555c922bfa0af34dc46e07913f2a47')
|
||||
|
||||
prepare() {
|
||||
mv "lxml-lxml-${pkgver}" "lxml-${pkgver}"
|
||||
|
||||
# Setting LC_CTYPE to workaround encoding issue
|
||||
export LC_CTYPE=en_US.UTF-8
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${_realname}-${pkgver}"
|
||||
/usr/bin/python setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${_realname}-${pkgver}"
|
||||
/usr/bin/python setup.py install --prefix=/usr --root="${pkgdir}" -O1
|
||||
install -Dm644 LICENSES.txt "${pkgdir}/usr/share/licenses/python-${_realname}/LICENSES.txt"
|
||||
}
|
||||
Reference in New Issue
Block a user