aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2021-04-22 11:52:26 +0200
committerBart Ribbers <bribbers@disroot.org>2021-04-22 11:36:01 +0000
commit4a3aa7a76fcc8e37b1b290d75a4ffa63b9940b6a (patch)
treed1f705546ab3b7a0498ec847e8e9965616064181
parent2c6d3161f911496ddb12643e8aeab1c017f79eaa (diff)
downloadaports-4a3aa7a76fcc8e37b1b290d75a4ffa63b9940b6a.tar.gz
aports-4a3aa7a76fcc8e37b1b290d75a4ffa63b9940b6a.tar.bz2
aports-4a3aa7a76fcc8e37b1b290d75a4ffa63b9940b6a.tar.xz
community/spectacle: replace systemd service file for XDG autostart one
-rw-r--r--community/spectacle/APKBUILD44
-rw-r--r--community/spectacle/spectacle.desktop7
2 files changed, 45 insertions, 6 deletions
diff --git a/community/spectacle/APKBUILD b/community/spectacle/APKBUILD
index af175ecae2..554a3a68d0 100644
--- a/community/spectacle/APKBUILD
+++ b/community/spectacle/APKBUILD
@@ -2,13 +2,39 @@
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=spectacle
pkgver=20.12.3
-pkgrel=0
+pkgrel=1
pkgdesc="Application for capturing desktop screenshots"
-arch="all !armhf !s390x !mips64" # armhf blocked by extra-cmake-modules
+# armhf blocked by extra-cmake-modules
+# s390x and mips64 blocked by kdeclarative
+arch="all !armhf !s390x !mips64"
url="https://kde.org/applications/utilities/org.kde.spectacle"
license="GPL-2.0-only"
-makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtx11extras-dev kcoreaddons-dev kwidgetsaddons-dev kdbusaddons-dev knotifications-dev kconfig-dev ki18n-dev kio-dev kwindowsystem-dev kdoctools-dev knewstuff-dev kdeclarative-dev libkipi-dev purpose-dev kwayland-dev xcb-util-image-dev xcb-util-cursor-dev libxcb-dev xcb-util-renderutil-dev"
-source="https://download.kde.org/stable/release-service/$pkgver/src/spectacle-$pkgver.tar.xz"
+makedepends="
+ extra-cmake-modules
+ kconfig-dev
+ kcoreaddons-dev
+ kdbusaddons-dev
+ kdeclarative-dev
+ kdoctools-dev
+ ki18n-dev
+ kio-dev
+ knewstuff-dev
+ knotifications-dev
+ kwayland-dev
+ kwidgetsaddons-dev
+ kwindowsystem-dev
+ libkipi-dev
+ libxcb-dev
+ purpose-dev
+ qt5-qtbase-dev
+ qt5-qtx11extras-dev
+ xcb-util-cursor-dev
+ xcb-util-image-dev
+ xcb-util-renderutil-dev
+ "
+source="https://download.kde.org/stable/release-service/$pkgver/src/spectacle-$pkgver.tar.xz
+ spectacle.desktop
+ "
subpackages="$pkgname-doc $pkgname-lang"
build() {
@@ -25,6 +51,12 @@ check() {
}
package() {
- DESTDIR="$pkgdir" cmake --build build --target install
+ DESTDIR="$pkgdir" cmake --install build
+
+ install -Dm644 "$srcdir"/spectacle.desktop -t "$pkgdir"/etc/xdg/autostart/
+
+ # We don't ship systemd
+ rm -r "$pkgdir"/usr/lib/systemd
}
-sha512sums="4749916ff1557d89c3a8aeae06ce2da4e3f5bbbc3495a588209d797453b265447a857266889a81178f33b12631f6ec29be7a65a3f98f27de604c198e997795dc spectacle-20.12.3.tar.xz"
+sha512sums="4749916ff1557d89c3a8aeae06ce2da4e3f5bbbc3495a588209d797453b265447a857266889a81178f33b12631f6ec29be7a65a3f98f27de604c198e997795dc spectacle-20.12.3.tar.xz
+7c563d811f30d26f83e01a465e803b95167c5b2b842315257216ab282e07c69e7582a14d7f429cd19678199179ad8f3f2854265092f5a4c9ce9b65c87ed3849d spectacle.desktop"
diff --git a/community/spectacle/spectacle.desktop b/community/spectacle/spectacle.desktop
new file mode 100644
index 0000000000..6392a23e7f
--- /dev/null
+++ b/community/spectacle/spectacle.desktop
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Name=spectacle
+Comment=Start spectacle DBus service
+Type=Application
+Exec=/usr/bin/spectacle --dbus
+TryExec=/usr/bin/spectacle
+Terminal=false