summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 87ff345c91db77eb74adc2363cef1f69c3327180 (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
# Maintainer: Nils Christopher Brause <nilschrbrause@googlemail.com>
pkgname=waylandpp-git
pkgver=210
pkgrel=2
pkgdesc='Wayland C++ bindings'
arch=('i686' 'x86_64' 'armv5' 'armv6' 'armv7' 'armv8')
url='https://github.com/NilsBrause/waylandpp'
licanse=('MIT' 'GPL3')
depends=(wayland)
provides=(waylandpp)
conflicts=(waylandpp)
makedepends=(cmake)
source=("${pkgname}::git+https://github.com/NilsBrause/waylandpp.git")
md5sums=('SKIP')

pkgver()
{
    cd $pkgname
    git log --pretty=oneline | wc -l
}

build()
{
    cd $pkgname
    rm -rf build
    mkdir build
    cd build
    # lib64 is a symlink to lib on archlinux.
    cmake -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_INSTALL_LIBDIR="lib" .. 
    make
}

package()
{
    cd $pkgname/build
    DESTDIR="$pkgdir" make install
    cd ..
    rm -r build
}

# Local Variables:
# mode: shell-script
# End: