summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPellegrino Prevete2023-07-03 15:18:32 +0200
committerPellegrino Prevete2023-07-03 15:18:32 +0200
commitedf55e4f28508da7dac43f9d84a0800211e3405b (patch)
tree22aaa26c3489f02dd67a1153f39d93a629eb282b
parent0f0750062e5535a604f0517150294d8c10f5504f (diff)
fix build
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD19
2 files changed, 12 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4f92c03..32eafe9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -14,7 +14,7 @@ pkgbase = python2-libxml2
depends = icu
depends = ncurses
depends = python2
- depends = libxml2-2.9
+ depends = libxml2=2.9.10
depends = readline
depends = xz
depends = zlib
diff --git a/PKGBUILD b/PKGBUILD
index 295333b..a2bd0ee 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,6 +9,7 @@ _py="python2"
_pkg="libxml2"
pkgname="${_py}-${_pkg}"
pkgver=2.9.14
+_pkgver=2.9.10
pkgrel=1
pkgdesc='XML parsing library, version 2'
_url="https://gitlab.gnome.org/GNOME/${_pkg}"
@@ -26,7 +27,7 @@ depends=(
icu
ncurses
"${_py}"
- "${_pkg}-2.9"
+ "${_pkg}=${_pkgver}"
readline
xz
zlib
@@ -88,23 +89,25 @@ build() (
local _ldflags=(
"-L/usr/lib/${_pkg}-2.9"
)
- local _flags=(
- CFLAGS=${_cflags[*]}
- LDFLAGS=${_ldflags[*]}
- )
cd build
- ${_flags[@]} \
+ CFLAGS="${_cflags[*]}" \
+ LDFLAGS="${_ldflags[*]}" \
"../${pkgname}/configure" "${_configure_opts[@]}"
+
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool
- ${_flags[@]} \
- make
+
+ CFLAGS="${_cflags[*]}" \
+ LDFLAGS="${_ldflags[*]}" \
+ make
find doc -type f -exec chmod 0644 {} +
)
check() {
+ CFLAGS="${_cflags[*]}" \
+ LDFLAGS="${_ldflags[*]}" \
make -C build check
}