summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7cde795cae7c8df574a7b46695d6f1c9b0581a95 (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
37
38
39
40
41
42
43
44
45
46
# Maintainer: Salamandar <felix@piedallu.me>

pkgname=livewallpaper-bzr
pkgdesc="OpenGL powered animated wallpapers with configuration utility, autostart, and application indicator."
url="https://launchpad.net/livewallpaper"
license=('GPL3')

pkgver=0.5.0.r333
pkgrel=1
arch=('x86_64' 'i686')

makedepends=(
    'bzr' 'cmake' 'ninja' 'vala' 'intltool' 'xcftools'
)
depends=(
    'libpeas' 'upower' 'libappindicator-gtk3' 'gobject-introspection'
    'python' 'python-cairo' 'python-opengl' 'glew'
)
replaces=('livewallpaper')

source=("${pkgname}"::'bzr+https://launchpad.net/livewallpaper/trunk')
sha1sums=('SKIP')

pkgver() {
  cd "${pkgname}"
  bzr tags | sort -n -k1 | sed 's/.*-//g'| awk -v REV="$(bzr revno)" 'END { printf("%s.r%s\n", $1, REV-$3) }'
}

build() {
    cd "${pkgname}"
    mkdir "build" -p
    cd    "build"

    cmake -GNinja \
        -DCMAKE_INSTALL_PREFIX=/usr \
        ..

    ninja
}

package() {
    cd "${pkgname}"
    cd "build"

    DESTDIR="${pkgdir}" ninja install
}