author | Antonio Rojas
<arojas@archlinux.org> 2024-01-16 19:53:30 UTC |
committer | Antonio Rojas
<arojas@archlinux.org> 2024-01-16 19:53:30 UTC |
parent | 4612fa396525f23a0d81f12901a3bf4d505f1b51 |
.SRCINFO | +36 | -0 |
PKGBUILD | +40 | -11 |
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..5513289 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,36 @@ +pkgbase = kimageannotator + pkgdesc = Tool for annotating images + pkgver = 0.7.0 + pkgrel = 1 + url = https://github.com/ksnip/kImageAnnotator + arch = x86_64 + license = LGPL-3.0-only + makedepends = cmake + makedepends = kcolorpicker-qt5 + makedepends = kcolorpicker-qt6 + makedepends = qt5-svg + makedepends = qt5-tools + makedepends = qt6-svg + makedepends = qt6-tools + depends = gcc-libs + depends = glibc + depends = libx11 + source = https://github.com/ksnip/kImageAnnotator/archive/v0.7.0/kimageannotator-0.7.0.tar.gz + sha256sums = 66e6ff5de1f8f808834143130a0a06d203aa01fb8f02e65af73042e61342163a + +pkgname = kimageannotator-qt5 + depends = gcc-libs + depends = glibc + depends = libx11 + depends = kcolorpicker-qt5 + depends = qt5-base + depends = qt5-svg + replaces = kimageannotator + +pkgname = kimageannotator-qt6 + depends = gcc-libs + depends = glibc + depends = libx11 + depends = kcolorpicker-qt6 + depends = qt6-base + depends = qt6-svg diff --git a/PKGBUILD b/PKGBUILD index 065a70f..5607edd 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,26 +1,55 @@ # Maintainer: Antonio Rojas <arojas@archlinux.org> # Contributor: dracorp aka Piotr Rogoza <piotr.r.public at gmail.com> -pkgname=kimageannotator -pkgver=0.6.1 +pkgbase=kimageannotator +pkgname=(kimageannotator-qt5 + kimageannotator-qt6) +pkgver=0.7.0 pkgrel=1 pkgdesc='Tool for annotating images' arch=(x86_64) url='https://github.com/ksnip/kImageAnnotator' -license=(GPL) -depends=(qt5-svg kcolorpicker) -makedepends=(cmake qt5-tools) -source=(https://github.com/ksnip/kImageAnnotator/archive/v$pkgver/$pkgname-$pkgver.tar.gz) -sha256sums=('8d32f0722dbb59a387d5d07c83a483e1b32f5014183eb67f2a9c5340da73d369') +license=(LGPL-3.0-only) +depends=(gcc-libs + glibc + libx11) +makedepends=(cmake + kcolorpicker-qt5 + kcolorpicker-qt6 + qt5-svg + qt5-tools + qt6-svg + qt6-tools) +source=(https://github.com/ksnip/kImageAnnotator/archive/v$pkgver/$pkgbase-$pkgver.tar.gz) +sha256sums=('66e6ff5de1f8f808834143130a0a06d203aa01fb8f02e65af73042e61342163a') build() { - cmake -B build -S kImageAnnotator-$pkgver \ + cmake -B build5 -S kImageAnnotator-$pkgver \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_SHARED_LIBS=ON - cmake --build build + cmake --build build5 + + cmake -B build6 -S kImageAnnotator-$pkgver \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_SHARED_LIBS=ON \ + -DBUILD_WITH_QT6=ON + cmake --build build6 } -package() { - DESTDIR="$pkgdir" cmake --install build +package_kimageannotator-qt5() { + depends+=(kcolorpicker-qt5 + qt5-base + qt5-svg) + replaces=(kimageannotator) + + DESTDIR="$pkgdir" cmake --install build5 } +package_kimageannotator-qt6() { + depends+=(kcolorpicker-qt6 + qt6-base + qt6-svg) + + DESTDIR="$pkgdir" cmake --install build6 + rm -r "$pkgdir"/usr/share # Remove translations, conflict with Qt5 +}