author | Antonio Rojas
<arojas@archlinux.org> 2024-01-12 11:00:03 UTC |
committer | Antonio Rojas
<arojas@archlinux.org> 2024-01-12 11:00:03 UTC |
parent | df48de747d5579af20090d5080c2bc4910c158f8 |
.SRCINFO | +21 | -5 |
PKGBUILD | +33 | -9 |
diff --git a/.SRCINFO b/.SRCINFO index 0b44edb..d2caf20 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = ksanecore pkgdesc = Library providing logic to interface scanners - pkgver = 23.08.4 + pkgver = 24.01.90 pkgrel = 1 url = https://www.kde.org/ arch = x86_64 @@ -8,14 +8,30 @@ pkgbase = ksanecore license = LGPL license = FDL makedepends = extra-cmake-modules - depends = ki18n5 + makedepends = ki18n + makedepends = ki18n5 + depends = gcc-libs + depends = glibc depends = sane - source = https://download.kde.org/stable/release-service/23.08.4/src/ksanecore-23.08.4.tar.xz - source = https://download.kde.org/stable/release-service/23.08.4/src/ksanecore-23.08.4.tar.xz.sig + source = https://download.kde.org/unstable/release-service/24.01.90/src/ksanecore-24.01.90.tar.xz + source = https://download.kde.org/unstable/release-service/24.01.90/src/ksanecore-24.01.90.tar.xz.sig validpgpkeys = CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7 validpgpkeys = F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87 validpgpkeys = D81C0CB38EB725EF6691C385BB463350D6EF31EF - sha256sums = 57d116917278369d9468c6a86d308019a76c1c4080b110b6cf9b589600d500e4 + sha256sums = a5f5c8ce17f5d8086c3171c2c70e4c445b876ccf3a189c387e4f45327cbb3251 sha256sums = SKIP pkgname = ksanecore + depends = gcc-libs + depends = glibc + depends = sane + depends = ki18n + depends = qt6-base + +pkgname = ksanecore5 + depends = gcc-libs + depends = glibc + depends = sane + depends = ki18n5 + depends = ksanecore + depends = qt5-base diff --git a/PKGBUILD b/PKGBUILD index 5848e12..8858f93 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,28 +2,52 @@ # Maintainer: Antonio Rojas <arojas@archlinux.org> # Contributor: Andrea Scarpino <andrea@archlinux.org> -pkgname=ksanecore -pkgver=23.08.4 +pkgbase=ksanecore +pkgname=(ksanecore + ksanecore5) +pkgver=24.01.90 pkgrel=1 pkgdesc='Library providing logic to interface scanners' url='https://www.kde.org/' arch=(x86_64) license=(GPL LGPL FDL) -depends=(ki18n5 sane) -makedepends=(extra-cmake-modules) -source=(https://download.kde.org/stable/release-service/$pkgver/src/$pkgname-$pkgver.tar.xz{,.sig}) -sha256sums=('57d116917278369d9468c6a86d308019a76c1c4080b110b6cf9b589600d500e4' +depends=(gcc-libs + glibc + sane) +makedepends=(extra-cmake-modules + ki18n + ki18n5) +source=(https://download.kde.org/unstable/release-service/$pkgver/src/$pkgbase-$pkgver.tar.xz{,.sig}) +sha256sums=('a5f5c8ce17f5d8086c3171c2c70e4c445b876ccf3a189c387e4f45327cbb3251' 'SKIP') validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7 # Albert Astals Cid <aacid@kde.org> F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87 # Christoph Feck <cfeck@kde.org> D81C0CB38EB725EF6691C385BB463350D6EF31EF) # Heiko Becker <heiko.becker@kde.org> build() { - cmake -B build -S $pkgname-$pkgver \ - -DBUILD_TESTING=OFF + cmake -B build -S $pkgbase-$pkgver \ + -DBUILD_TESTING=OFF \ + -DQT_MAJOR_VERSION=6 cmake --build build + + cmake -B build5 -S $pkgbase-$pkgver \ + -DBUILD_TESTING=OFF \ + -DQT_MAJOR_VERSION=5 + cmake --build build5 } -package() { +package_ksanecore() { + depends+=(ki18n + qt6-base) + DESTDIR="$pkgdir" cmake --install build } + +package_ksanecore5() { + depends+=(ki18n5 + ksanecore # translations + qt5-base) + + DESTDIR="$pkgdir" cmake --install build5 + rm -r "$pkgdir"/usr/share/locale # Conflicts with Qt6 version +}