summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cfe0ca2102eb7bc44f7e3349a4fffea73f715766 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Wynne Plaga <rwplaga dot linux at gmail dot com>

pkgname=kwin-effects-sliding-notifications-git
_reponame=kwin-effects-sliding-notifications
pkgver=12.949a756
pkgrel=1
pkgdesc="Sliding animation for notification windows"
arch=('any')
url="https://github.com/zzag/kwin-effects-sliding-notifications"
#license=('MIT')
depends=('kwin')
makedepends=('git' 'cmake' 'extra-cmake-modules')
source=("git+https://github.com/zzag/kwin-effects-sliding-notifications.git")
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/$_reponame"
    printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "$srcdir/$_reponame"

    mkdir -p build
    cd build
    cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
    make
}

package() {
    cd "$srcdir/$_reponame/build"
    make DESTDIR="$pkgdir/" install
}