summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4e41af30d1329d8372ee802b85400ad611bf228d (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
47
# Maintainer: Ivan Semkin (ivan at semkin dot ru)
# Contributor: kikadf <kikadf.01@gmail.com>

pkgname=mir-git
_pkgname=mir
pkgver=v0.31.2+334+ge26dbf576b
pkgrel=1
pkgdesc='The Mir compositor'
url='https://mir-server.io'
arch=(x86_64)
license=(GPL LGPL)
conflicts=(mir)
provides=(mir)
depends=(boost gcovr lcov capnproto google-glog gflags valgrind liburcu lttng-ust libepoxy nettle libinput libxml++2.6 libxkbcommon python-pillow freetype2 gmock libevdev umockdev python-dbusmock python-dbus python-gobject)
makedepends=(git glm doxygen)
optdepends=('qterminal: required for miral demos'
            'xcursor-dmz: required for miral demos'
            'ttf-ubuntu-font-family: required for miral demos'
            'qt5-wayland: required for miral demos')
source=('git+https://github.com/MirServer/mir.git'
        'https://raw.githubusercontent.com/capnproto/capnproto/04fd66e2992a3ed38d686642a3c479a7f3e131c9/c%2B%2B/cmake/FindCapnProto.cmake')
sha256sums=('SKIP'
            '83153402ea0220a9ed3f9d2c2c157eb49fedf340f368cd8173f0966b3fbf2647')

pkgver() {
  cd ${_pkgname}
  git describe --tags | sed 's/-/+/g'
}
            
prepare() {
    cd ${_pkgname}
    git submodule init
    git submodule update
    cp ../FindCapnProto.cmake cmake/
}

build() {
    cd ${_pkgname}
    ./native-compile.sh
}

package() {
    cd ${_pkgname}/build-linux-x86
    make DESTDIR="${pkgdir}/" install

}
# vim:set ts=2 sw=2 et: