From b0cb5f11317d7389b8daf530b7e5ce7be72c06cc Mon Sep 17 00:00:00 2001 From: kj_sh604 Date: Sat, 30 Aug 2025 00:07:32 -0400 Subject: refactor: adopt package add .gitignore --- .SRCINFO | 6 ++++-- .gitignore | 5 +++++ PKGBUILD | 31 +++++++++++++------------------ 3 files changed, 22 insertions(+), 20 deletions(-) create mode 100644 .gitignore diff --git a/.SRCINFO b/.SRCINFO index c2196c7..9f9d628 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -10,12 +10,14 @@ pkgbase = python2-libxml2 license = MIT makedepends = git depends = glibc - depends = libxml2-2.9 + depends = libxml2-legacy depends = python2 + provides = python2-libxml2 + conflicts = python2-libxml2 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 - sha256sums = SKIP + sha256sums = 1a3880e1aeb825134f2dd61c5393a5a4529a8ba861dd1ba8e43bbb42f0f9102f sha256sums = 3fc010d8c42b93e6d6f1fca6b598a561e9d2c8780ff3ca0c76a31efabaea404f sha256sums = 9b61db9f5dbffa545f4b8d78422167083a8568c59bd1129f94138f936cf6fc1f diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..48f9191 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +pkg/ +src/ +*.tar.* +*.pkg.* +python2*/ diff --git a/PKGBUILD b/PKGBUILD index 336cc0b..f01745a 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,9 +1,4 @@ -# Contributor: MarsSeed -# Contributor: Pellegrino Prevete -# Contributor: Levente Polyak -# Contributor: Jan de Groot -# Contributor: Tom Gundersen -# Contributor: John Proctor +# Maintainer: kj_sh604 _modulename="libxml2" _pyruntime=python2 @@ -17,12 +12,18 @@ arch=(x86_64 aarch64 i686 armv7h) license=(MIT) depends=( glibc - libxml2-2.9 + libxml2-legacy "${_pyruntime}" ) makedepends=( git ) +provides=( + "${pkgname}" +) +conflicts=( + "${pkgname}" +) _commit=7846b0a677f8d3ce72486125fa281e92ac9970e8 # tags/v2.9.14^0 _w3_tests="https://www.w3.org/XML/Test/xmlts20130923.tar.gz" source=( @@ -30,11 +31,9 @@ source=( no-fuzz.diff # Do not run fuzzing tests "${_w3_tests}" ) -sha256sums=( - 'SKIP' - '3fc010d8c42b93e6d6f1fca6b598a561e9d2c8780ff3ca0c76a31efabaea404f' - '9b61db9f5dbffa545f4b8d78422167083a8568c59bd1129f94138f936cf6fc1f' -) +sha256sums=('1a3880e1aeb825134f2dd61c5393a5a4529a8ba861dd1ba8e43bbb42f0f9102f' + '3fc010d8c42b93e6d6f1fca6b598a561e9d2c8780ff3ca0c76a31efabaea404f' + '9b61db9f5dbffa545f4b8d78422167083a8568c59bd1129f94138f936cf6fc1f') pkgver() { cd "${pkgname}" @@ -93,12 +92,6 @@ build() ( find doc -type f -exec chmod 0644 {} + ) -check() { - CFLAGS="${_cflags[*]}" \ - LDFLAGS="${_ldflags[*]}" \ - make -C build check -} - package() { make DESTDIR="${pkgdir}" -C build install "${_pyruntime}" -m compileall \ @@ -124,3 +117,5 @@ package() { rm -rf "${pkgdir}/usr/share/man/man1" rm -rf "${pkgdir}/usr/share/man/man3" } + +# vim: ts=2 sw=2 et: -- cgit v1.2.3