summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcell Meszaros2024-08-20 04:39:23 +0200
committerMarcell Meszaros2024-08-20 04:46:31 +0200
commit50de20e12e98a13a191eaa34672040d27611d7fd (patch)
tree8fac13ebda05f73d83067386752d2bba268b1581
parent20572222d1dad8287763f8d3ab2a3e55f6abcb17 (diff)
adjust deps (add glibc, remove unneeded ones); improve formatting
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD56
2 files changed, 24 insertions, 44 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3f5cff9..c2196c7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,23 +1,17 @@
pkgbase = python2-libxml2
- pkgdesc = XML parsing library, version 2
+ pkgdesc = Python 2 bindings for the XML parsing library v2
pkgver = 2.9.14
pkgrel = 1
url = https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home
arch = x86_64
arch = aarch64
arch = i686
- arch = pentium4
arch = armv7h
- arch = armv6l
license = MIT
makedepends = git
- depends = icu
- depends = ncurses
+ depends = glibc
+ depends = libxml2-2.9
depends = python2
- depends = libxml2=2.9.10
- depends = readline
- depends = xz
- depends = zlib
source = python2-libxml2::git+https://gitlab.gnome.org/GNOME/libxml2.git#commit=7846b0a677f8d3ce72486125fa281e92ac9970e8
source = no-fuzz.diff
source = https://www.w3.org/XML/Test/xmlts20130923.tar.gz
diff --git a/PKGBUILD b/PKGBUILD
index 78429a5..336cc0b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,36 +1,24 @@
-# Maintainer: Pellegrino Prevete <pellegrinoprevete@gmail.com>
+# Contributor: MarsSeed <marcell.meszaros@runbox.eu>
+# Contributor: Pellegrino Prevete <pellegrinoprevete@gmail.com>
# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Jan de Groot <jgc@archlinux.org>
# Contributor: Tom Gundersen <teg@jklm.no>
# Contributor: John Proctor <jproctor@prium.net>
-# Contributor: MarsSeed <marcell.meszaros@runbox.eu>
-_py="python2"
-_pkg="libxml2"
-pkgname="${_py}-${_pkg}"
+_modulename="libxml2"
+_pyruntime=python2
+pkgname="${_pyruntime}-${_modulename}"
pkgver=2.9.14
-_pkgver=2.9.10
pkgrel=1
-pkgdesc='XML parsing library, version 2'
-_url="https://gitlab.gnome.org/GNOME/${_pkg}"
+pkgdesc='Python 2 bindings for the XML parsing library v2'
+_url="https://gitlab.gnome.org/GNOME/${_modulename}"
url="${_url}/-/wikis/home"
-arch=(
- x86_64
- aarch64
- i686
- pentium4
- armv7h
- armv6l
-)
+arch=(x86_64 aarch64 i686 armv7h)
license=(MIT)
depends=(
- icu
- ncurses
- "${_py}"
- "${_pkg}=${_pkgver}"
- readline
- xz
- zlib
+ glibc
+ libxml2-2.9
+ "${_pyruntime}"
)
makedepends=(
git
@@ -80,14 +68,14 @@ build() (
--prefix=/usr
--with-threads
--with-history
- --with-python="/usr/bin/${_py}"
+ --with-python="/usr/bin/${_pyruntime}"
--with-icu
)
local _cflags=(
- "-I/usr/include/${_pkg}-2.9"
+ "-I/usr/include/${_modulename}-2.9"
)
local _ldflags=(
- "-L/usr/lib/${_pkg}-2.9"
+ "-L/usr/lib/${_modulename}-2.9"
)
cd build
@@ -113,9 +101,9 @@ check() {
package() {
make DESTDIR="${pkgdir}" -C build install
- "${_py}" -m compileall \
+ "${_pyruntime}" -m compileall \
-d /usr/lib "${pkgdir}/usr/lib"
- "${_py}" -O \
+ "${_pyruntime}" -O \
-m compileall \
-d /usr/lib "${pkgdir}/usr/lib"
@@ -124,17 +112,15 @@ package() {
rm -rf "${pkgdir}/usr/bin/"
rm -rf "${pkgdir}/usr/bin/"
- rm -rf "${pkgdir}/usr/include/${_pkg}/libxml"
+ rm -rf "${pkgdir}/usr/include/${_modulename}/libxml"
rm -rf "${pkgdir}/usr/lib/cmake"
- rm -rf "${pkgdir}/usr/lib/${_pkg}"*
+ rm -rf "${pkgdir}/usr/lib/${_modulename}"*
rm -rf "${pkgdir}/usr/lib/pkgconfig"
rm -rf "${pkgdir}/usr/lib/xml2Conf.sh"
rm -rf "${pkgdir}/usr/share/aclocal"
- rm -rf "${pkgdir}/usr/share/doc/${_pkg}"
- rm -rf "${pkgdir}/usr/share/doc/${_pkg}-python-${pkgver}"
- rm -rf "${pkgdir}/usr/share/gtk-doc/html/${_pkg}"
+ rm -rf "${pkgdir}/usr/share/doc/${_modulename}"
+ rm -rf "${pkgdir}/usr/share/doc/${_modulename}-${_pyruntime}-${pkgver}"
+ rm -rf "${pkgdir}/usr/share/gtk-doc/html/${_modulename}"
rm -rf "${pkgdir}/usr/share/man/man1"
rm -rf "${pkgdir}/usr/share/man/man3"
}
-
-# vim: ts=2 sw=2 et: