aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2021-12-30 23:41:26 +0100
committerJakub Jirutka <jakub@jirutka.cz>2022-01-01 22:36:36 +0000
commit10beca88300cc079438dfd94f25bc95886d1356f (patch)
treed9ac71dff74309ef3057f47d283135da86ebe5f2
parent79f12718db4b9852f67c09403fe4a0555b32aa97 (diff)
downloadaports-10beca88300cc079438dfd94f25bc95886d1356f.tar.gz
aports-10beca88300cc079438dfd94f25bc95886d1356f.tar.bz2
aports-10beca88300cc079438dfd94f25bc95886d1356f.tar.xz
community/imv: split wayland and x11 variants into subpackages
To avoid installing unnecessary dependencies when the user doesn't have X11 (or Wayland) installed.
-rw-r--r--community/imv/APKBUILD20
1 files changed, 18 insertions, 2 deletions
diff --git a/community/imv/APKBUILD b/community/imv/APKBUILD
index 2132e719b6..de6dba5da3 100644
--- a/community/imv/APKBUILD
+++ b/community/imv/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=imv
pkgver=4.3.1
-pkgrel=0
+pkgrel=1
pkgdesc="Image viewer for X11/Wayland"
url="https://sr.ht/~exec64/imv"
# s390x, mips64 and riscv64 blocked by librsvg
@@ -25,7 +25,7 @@ checkdepends="
cmocka
cmocka-dev
"
-subpackages="$pkgname-doc"
+subpackages="$pkgname-doc $pkgname-wayland $pkgname-x11"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~exec64/imv/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
@@ -53,6 +53,22 @@ package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
+wayland() {
+ pkgdesc="Image viewer for Wayland"
+ depends="$pkgname=$pkgver-r$pkgrel"
+ install_if="$pkgname=$pkgver-r$pkgrel wayland-libs-server"
+
+ amove usr/bin/imv-wayland
+}
+
+x11() {
+ pkgdesc="Image viewer for X11"
+ depends="$pkgname=$pkgver-r$pkgrel"
+ install_if="$pkgname=$pkgver-r$pkgrel libx11"
+
+ amove usr/bin/imv-x11
+}
+
sha512sums="
f70b95f3f99d7d6a9276370650cef0885938464e3a40ab1768231292ba35d9040f7196a5853ea1268fe6d47cf08d129b3fbae1ca215df96d12ccd85b7efd1ee6 imv-4.3.1.tar.gz
"