mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
35 lines
864 B
Bash
35 lines
864 B
Bash
pkgname=plasma5-applets-keystate
|
|
_name=keystate-plasmoid
|
|
pkgver=0.5
|
|
pkgrel=1
|
|
pkgdesc="Displays the state of some keys (Caps Lock, Num Lock, Meta and a few more)"
|
|
arch=('x86_64')
|
|
url="https://github.com/xdarklight/keystate-plasmoid"
|
|
license=('GPL')
|
|
group=('plasma5-applets')
|
|
depends=('plasma-workspace' 'qt5-graphicaleffects')
|
|
makedepends=('extra-cmake-modules')
|
|
source=("https://github.com/xdarklight/keystate-plasmoid/archive/v${pkgver}.tar.gz")
|
|
sha256sums=('53d485cdccf6689fc6f9c8fdc9942e0775a346eb0bfcac9e2da0759417e51ebc')
|
|
|
|
prepare() {
|
|
cd "${_name}-${pkgver}"
|
|
mkdir -p build
|
|
}
|
|
|
|
build() {
|
|
cd "${_name}-${pkgver}/build"
|
|
|
|
cmake .. \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DLIB_INSTALL_DIR=lib \
|
|
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
|
|
}
|
|
|
|
package() {
|
|
cd "${_name}-${pkgver}"/build
|
|
|
|
make install DESTDIR="${pkgdir}"
|
|
}
|