summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8f7e46a4dbf0738af28924a72d178a80bd70601e (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
48
49
50
51
52
53
54
55
56
pkgname=orbment-git
pkgver=r457.149bb49
pkgrel=2

pkgdesc='A modular wayland compositor based on wlc.'
url='https://github.com/Cloudef/orbment'
arch=('i686' 'x86_64')
license=('GPL')

# This dependency should be 'wlc' but AUR helpers aren't capable of figuring
# out that the AUR package 'wlc-git' provides 'wlc'.
depends=('wlc-git')
makedepends=('git' 'cmake' 'libpng')
optdepends=('weston: To test weston clients in orbment.'
            'bemenu: Dynamic menu similar to dmenu for launching programs.'
            'libpng: PNG screenshot compression.')

provides=('orbment')
conflicts=('orbment')

install='orbment-git.install'

source=('git://github.com/Cloudef/orbment'
        'git://github.com/Cloudef/chck'
        'git://github.com/Cloudef/inihck')

md5sums=('SKIP' 'SKIP' 'SKIP')

# Once this software becomes more stable these requirements will be dropped but
# for the time being I recommend leaving them enabled so you may contribute
# useful backtraces to the developer and help remove any errors.
options=('debug' '!strip')

pkgver() {
    cd orbment
    printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    cd orbment
    git submodule init
    git config submodule.chck.url "$srcdir"/chck
    git config submodule.lib/inihck.url "$srcdir"/inihck
    git submodule update lib/chck lib/inihck
}

build() {
    cd orbment
    cmake -DCMAKE_BUILD_TYPE=Upstream -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib
    make
}

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