* update libical to 3.0.19-1

This commit is contained in:
Alexander Baldeck 2025-01-04 11:25:12 +01:00
parent af67d6bcec
commit 598826ecd5
3 changed files with 36 additions and 70 deletions

View File

@ -1,32 +1,27 @@
pkgbase = libical
pkgdesc = Implementation of iCalendar protocols and data formats
pkgver = 3.0.18
pkgrel = 2.1
pkgdesc = An open source reference implementation of the icalendar data type and serialization format
pkgver = 3.0.19
pkgrel = 1
url = https://github.com/libical/libical
arch = x86_64
arch = powerpc64le
arch = powerpc64
arch = powerpc
arch = riscv64
license = MPL-2.0 OR LGPL-2.1-only
license = LGPL
license = MPL
checkdepends = python-gobject
makedepends = cmake
makedepends = doxygen
makedepends = git
makedepends = gobject-introspection
makedepends = gtk-doc
makedepends = ninja
makedepends = gtk-doc
makedepends = doxygen
makedepends = vala
depends = gcc-libs
depends = glib2
makedepends = gobject-introspection
depends = glibc
depends = glib2
depends = icu
depends = libxml2
source = git+https://github.com/libical/libical#tag=v3.0.18
source = 0001-Fix-build-with-ICU-75.patch
source = 0002-HACK-Disable-failing-test.patch
b2sums = 39fe3732b985fa2ab819a890d7310192e92174f2a5a2e150909fee1315b171ff67a38958fdd2311b557946a1b6d051c1e66545fe1d5def3c9ab9b6f3fc3fdc05
b2sums = 926be2cbc0513cbee4a67abe4fee6cc4149c5a45ccfa6e71869db423ae2248b07a6417d2574e31ba25637f347faba9a56251e36d58953b4660daf4d0973be83d
b2sums = bd2973318715ba605231c6dbe030c9837872fb604b248842dbfbc4c59d902501c8cf01173918111b6d52a1223eb36f9d046276a4e964e570b10e274c1a8b689e
source = libical-3.0.19.tar.gz::https://github.com/libical/libical/archive/v3.0.19.tar.gz
sha512sums = 32e5cac219801b40d8691deae6efae6fdaa64ca0968a72af5b27647958d44d79626c26c4e3675cfb284c2f1039c237c61ba2dd6030e9b1ea6a9d69296424240d
pkgname = libical

5
libical/.nvchecker.toml Normal file
View File

@ -0,0 +1,5 @@
[libical]
source = 'github'
github = 'libical/libical'
use_max_tag = true
prefix = 'v'

View File

@ -4,68 +4,34 @@
# Contributor: Pierre Schmitz <pierre@archlinux.de>
pkgname=libical
pkgver=3.0.18
pkgrel=2.1
pkgdesc="Implementation of iCalendar protocols and data formats"
url="https://github.com/libical/libical"
pkgver=3.0.19
pkgrel=1
pkgdesc="An open source reference implementation of the icalendar data type and serialization format"
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
license=("MPL-2.0 OR LGPL-2.1-only")
depends=(
gcc-libs
glib2
glibc
icu
libxml2
)
makedepends=(
cmake
doxygen
git
gobject-introspection
gtk-doc
ninja
vala
)
checkdepends=(python-gobject)
source=(
"git+$url#tag=v$pkgver"
0001-Fix-build-with-ICU-75.patch
0002-HACK-Disable-failing-test.patch
)
b2sums=('39fe3732b985fa2ab819a890d7310192e92174f2a5a2e150909fee1315b171ff67a38958fdd2311b557946a1b6d051c1e66545fe1d5def3c9ab9b6f3fc3fdc05'
'926be2cbc0513cbee4a67abe4fee6cc4149c5a45ccfa6e71869db423ae2248b07a6417d2574e31ba25637f347faba9a56251e36d58953b4660daf4d0973be83d'
'bd2973318715ba605231c6dbe030c9837872fb604b248842dbfbc4c59d902501c8cf01173918111b6d52a1223eb36f9d046276a4e964e570b10e274c1a8b689e')
prepare() {
cd $pkgname
# ICU 75 compatibility
# https://github.com/libical/libical/issues/684
git apply -3 ../0001-Fix-build-with-ICU-75.patch
git apply -3 ../0002-HACK-Disable-failing-test.patch
}
url='https://github.com/libical/libical'
license=('LGPL' 'MPL')
depends=('glibc' 'glib2' 'icu' 'libxml2')
makedepends=('cmake' 'ninja' 'gtk-doc' 'doxygen' 'vala' 'gobject-introspection')
checkdepends=('python-gobject')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/v${pkgver}.tar.gz")
sha512sums=('32e5cac219801b40d8691deae6efae6fdaa64ca0968a72af5b27647958d44d79626c26c4e3675cfb284c2f1039c237c61ba2dd6030e9b1ea6a9d69296424240d')
build() {
local cmake_options=(
-D CMAKE_BUILD_TYPE=None
-D CMAKE_DISABLE_FIND_PACKAGE_BerkeleyDB=true
-D CMAKE_INSTALL_LIBEXECDIR=lib
-D CMAKE_INSTALL_PREFIX=/usr
-D GOBJECT_INTROSPECTION=true
-D ICAL_GLIB_VAPI=true
-D SHARED_ONLY=true
)
cmake -S $pkgname -B build -G Ninja "${cmake_options[@]}"
cmake -S "${pkgname}-${pkgver}" -B build -G Ninja \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBEXECDIR=lib \
-DGOBJECT_INTROSPECTION=true \
-DICAL_GLIB_VAPI=true \
-DSHARED_ONLY=true \
-DCMAKE_DISABLE_FIND_PACKAGE_BerkeleyDB=true
cmake --build build
}
check() {
ctest --test-dir build --output-on-failure --stop-on-failure -j$(nproc)
cmake --build build --target test
}
package() {
DESTDIR="$pkgdir" cmake --install build
DESTDIR="${pkgdir}" cmake --install build
}
# vim:set sw=2 sts=-1 et: