summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 73b879e8c60f467424d9e000615eb5217330d679 (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
# Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>

pkgname=unity-system-compositor-bzr
pkgver=218
pkgrel=1
pkgdesc="System compositor for Ubuntu"
arch=(i686 x86_64)
url="https://launchpad.net/unity-system-compositor"
license=(GPL)
depends=(boost cairo lightdm mesa-mir mir protobuf xorg-server-mir)
makedepends=(cmake)
provides=(unity-system-compositor)
conflicts=(unity-system-compositor)
options=(!emptydirs)
source=(bzr+https://code.launchpad.net/~unity-system-compositor-team/unity-system-compositor/trunk)
sha512sums=('SKIP')

pkgver() {
    cd trunk
    bzr revno
}

build() {
    cd trunk
    cmake . \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_SYSCONFDIR=/etc \
        -DMIR_ENABLE_TESTS=OFF
    make
}

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

    mv "${pkgdir}"/usr/{sbin/*,bin/}

    install -dm755 "${pkgdir}"/usr/share/lightdm/lightdm.conf.d/
    install -m644 debian/10-unity-system-compositor.conf \
                  "${pkgdir}"/usr/share/lightdm/lightdm.conf.d/

    install -m755 debian/unity-system-compositor.sleep "${pkgdir}"/usr/bin/
    sed -i 's/sbin/bin/g' "${pkgdir}"/usr/bin/unity-system-compositor.sleep
}