yelp-xsl: Update to 49.0; port to meson (#5680)

This commit is contained in:
Christoph Reiter 2025-09-28 16:10:27 +02:00 committed by GitHub
parent 283f6b5112
commit fbdc228710
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,46 +1,35 @@
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
pkgname=yelp-xsl
pkgver=42.1
pkgver=49.0
pkgrel=1
pkgdesc="Stylesheets for Yelp"
arch=('any')
license=('GPL')
url="https://www.gnome.org"
license=('spdx:GPL-2.0-or-later AND LGPL-2.1-or-later AND MIT')
url="https://gitlab.gnome.org/GNOME/yelp-xsl"
msys2_references=(
"anitya: 13164"
)
options=('strip' '!libtool' 'staticlibs')
makedepends=("libxml2-python" "intltool" "itstool" 'autotools' 'gettext-devel' 'gcc')
makedepends=(
"itstool"
"meson"
"libxslt"
)
source=(https://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz)
sha256sums=('238be150b1653080ce139971330fd36d3a26595e0d6a040a2c030bf3d2005bcd')
prepare() {
cd ${srcdir}/${pkgname}-${pkgver}
autoreconf -ivf
}
sha256sums=('59d43a8f8fe67b784f14f9a04dd4a7a092a7f4a64a65e71b90fe02a47a50fbec')
build() {
mkdir -p ${srcdir}/build-${CHOST} && cd ${srcdir}/build-${CHOST}
mkdir -p "build-${CHOST}"
cd "build-${CHOST}"
${srcdir}/${pkgname}-${pkgver}/configure \
meson setup "${srcdir}/${pkgname}-${pkgver}" . \
--prefix=/usr \
--build=${CHOST} \
--host=${CHOST} \
--sysconfdir=/etc \
--localstatedir=/var
--buildtype=release
make
}
check() {
cd ${srcdir}/build-${CHOST}
make -k check
meson compile -C .
}
package() {
cd ${srcdir}/build-${CHOST}
make DESTDIR="${pkgdir}" install
mkdir -p ${pkgdir}/usr/lib
mv ${pkgdir}/usr/share/pkgconfig ${pkgdir}/usr/lib/
cd "build-${CHOST}"
DESTDIR="${pkgdir}" meson install
}