recipes: python/libxml2_python2: Bump version number against recent libxml2 update
[dragora.git] / recipes / python / libxml2_python2 / recipe
blobb46107ee8219ef167f78cd92789368fce52fce7a
1 # Build recipe for libxml2 (Python2 module).
3 # Copyright (C) 2018-2020 Matias Fonzo, <selk@dragora.org>.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 #    http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 program=libxml2
18 version=2.9.10
19 release=1
21 pkgname=libxml2_python2
23 # Set 'outdir' for a nice and well-organized output directory
24 outdir="${outdir}/${arch}/python"
26 tarname=${program}-${version}.tar.gz
28 # Remote source(s)
29 fetch=http://xmlsoft.org/sources/$tarname
31 description="
32 libxml2 modules for Python version 2.
34 This package contains modules for the version 2 of Python,
35 required by other packages.
38 homepage=http://xmlsoft.org
39 license=MIT
41 # The source has a custom directory
42 srcdir="${program}-${version%-*}"
44 build()
46     set -e
48     unpack "${tardir}/$tarname"
50     cd "$srcdir"
52     # Set sane permissions
53     chmod -R u+w,go-w,a+rX-s .
55     # Installation of libxml2 Python2 module
57     cd python
58     python2 setup.py build
59     python2 setup.py install --prefix=/usr --root="$destdir" --optimize=1