summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..282546c84a3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: laloch <lalochcz@gmail.com>
+
+_pkgname=kwin-effect-osdclock
+pkgname="$_pkgname-git"
+pkgver=20180812.594e4de
+pkgrel=1
+pkgdesc='KWin effect that displays clock at the corner the screen'
+arch=('x86_64')
+url="https://github.com/laloch/${_pkgname}"
+license=('GPL')
+depends=('kwin')
+makedepends=('extra-cmake-modules' 'git')
+source=("$_pkgname"::"git+http://github.com/laloch/${_pkgname}.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd $_pkgname
+ echo "$(git log -1 --format="%cd" --date=short | tr -d '-').$(git log -1 --format="%h")"
+}
+
+prepare() {
+ cd $_pkgname
+ mkdir -p build
+}
+
+build(){
+ cd $_pkgname
+ cd build
+ cmake .. \
+ -DCMAKE_C_FLAGS:STRING="" \
+ -DCMAKE_CXX_FLAGS:STRING="" \
+ -DCMAKE_EXE_LINKER_FLAGS:STRING="" \
+ -DCMAKE_SHARED_LINKER_FLAGS:STRING="" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib
+ make
+}
+
+package(){
+ cd $_pkgname
+ cd build
+ make DESTDIR="$pkgdir" install
+}