summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d2b770abc1c924c2addc9aa376b3e736370a5763 (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
35
36
# Mantainer: David Rubio Escares (david.alejandro.rubio at gmail dot com)

pkgname=kwin-effects-yet-another-magic-lamp-git
_pkgname=kwin-effects-yet-another-magic-lamp
pkgver=4.1.2.r0.g1e38dd1
pkgrel=1
pkgdesc="Just Yet Another Magic Lamp effect. (Git version)"
arch=('x86_64')
url="https://github.com/zzag/$_pkgname"
license=('GPL3')
makedepends=(extra-cmake-modules)
provides=($_pkgname)
conflicts=($_pkgname)
depends=(kwin)
source=($pkgname::git+https://github.com/zzag/$_pkgname)
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  git describe --tags --long | sed -r -e 's,^[^0-9]*,,;s,([^-]*-g),r\1,;s,[-_],.,g'
}

build() {
    mkdir -p build
    cd build
    cmake ../"$pkgname" \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_LIBDIR=lib
    make
}

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