mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-04 01:07:17 +08:00
39 lines
918 B
Bash
39 lines
918 B
Bash
|
# Include global configuration
|
||
|
source ../kdeapps.conf
|
||
|
|
||
|
pkgname=spectacle
|
||
|
pkgver=${_kdever}
|
||
|
pkgrel=1
|
||
|
pkgdesc="KDE screenshot capture utility"
|
||
|
arch=(x86_64)
|
||
|
url='https://projects.kde.org/spectacle'
|
||
|
license=(GPL)
|
||
|
depends=(kio xcb-util-cursor libkscreen libkipi hicolor-icon-theme)
|
||
|
makedepends=(extra-cmake-modules kdoctools)
|
||
|
conflicts=(kdegraphics-ksnapshot kscreengenie)
|
||
|
replaces=(kdegraphics-ksnapshot kscreengenie)
|
||
|
groups=(kde-applications kdegraphics)
|
||
|
options=('docs' 'debug')
|
||
|
install=$pkgname.install
|
||
|
source=("$_mirror/${pkgname}-$_kdever.tar.xz")
|
||
|
sha256sums=(`grep ${pkgname}-$_kdever.tar.xz ../checksums.txt | cut -d " " -f1`)
|
||
|
|
||
|
|
||
|
prepare() {
|
||
|
mkdir -p build
|
||
|
}
|
||
|
|
||
|
build() {
|
||
|
cd build
|
||
|
cmake ../$pkgname-$pkgver \
|
||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||
|
-DCMAKE_BUILD_TYPE=Release \
|
||
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
||
|
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
|
||
|
make
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd build
|
||
|
make DESTDIR="$pkgdir" install
|
||
|
}
|