1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Josip Ponjavic <josipponjavic at gmail dot com>
3 # Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com>
5 pkgname=deepin-screenshot
8 pkgdesc="Easy-to-use screenshot tool for linuxdeepin desktop environment"
10 url="https://github.com/linuxdeepin/deepin-screenshot"
12 depends=('deepin-qt5integration' 'dtkwm' 'deepin-turbo')
13 makedepends=('cmake' 'ninja' 'qt5-tools')
14 source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-screenshot/archive/$pkgver.tar.gz"
15 deepin-screenshot-no-notification.patch
16 fix_copytoclipboard_in_kde_for_deepin-screenshot.patch)
17 sha512sums=('ad073961deaa78a47739af6cf8b0d0fa77a92ee6668c57f9a5bbf51ad2be1d2028681cffabdc26548be1bdbe24c7ccc7e7ff3d49b86907f794495bfbea62aa30'
18 'be84065c3d81b60a3d04180f85b75a58f535a674f8438ee37ffa4f9a9c47128c48a5819d7279a977d64adfb9a25be51ec88f682b0ed632d1c676d6a8af174389'
19 'f00ff0e15f0e7a76927594c4affe8fac557580ffe02b21669067d8ad03b121e30eb272e8984db8862047db914118b4ad21d6c20f438a51a884e0351426452c2a')
22 cd deepin-screenshot-$pkgver
23 patch -p1 -i ../deepin-screenshot-no-notification.patch
25 # Rebased from https://gist.github.com/springzfx/f881dff2d1c89efbfe59cfc288e09462
26 patch -p1 -i ../fix_copytoclipboard_in_kde_for_deepin-screenshot.patch
28 sed -i '1i #include <QPainterPath>' src/widgets/shapeswidget.cpp
32 cd deepin-screenshot-$pkgver
33 cmake . -GNinja -DCMAKE_INSTALL_PREFIX=/usr
38 cd deepin-screenshot-$pkgver
39 DESTDIR="$pkgdir" ninja install
41 rm "$pkgdir"/usr/share/dbus-1/services/com.deepin.Screenshot.service