summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkj_sh6042025-08-30 00:07:32 -0400
committerkj_sh6042025-08-30 00:07:32 -0400
commitb0cb5f11317d7389b8daf530b7e5ce7be72c06cc (patch)
tree9fb7d7449925d93292d64a739ee6de19510a93dd
parent50de20e12e98a13a191eaa34672040d27611d7fd (diff)
refactor: adopt package
add .gitignore
-rw-r--r--.SRCINFO6
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD31
3 files changed, 22 insertions, 20 deletions
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 <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>
+# 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: