summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3c7883b3a7e277117f4cf75737e2dec535631068 (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
# Maintainer: Vincent Grande <shoober420@gmail.com>
# Contributor: Daniel Bermond < gmail-com: danielbermond >
# Contributor: Joel Teichroeb <joel@teichroeb.net>
# Contributor: Scimmia

pkgbase=lib32-wayland-git
pkgname=('lib32-wayland-git')
pkgver=1.17.0.r18.g6908c8c
pkgrel=1
pkgdesc='A computer display server protocol'
arch=('x86_64')
url='https://wayland.freedesktop.org/'
provides=('lib32-wayland')
conflicts=('lib32-wayland')
license=('MIT')
depends=('lib32-glibc' 'lib32-libffi' 'lib32-expat' 'lib32-libxml2' 'wayland')
makedepends=('git')
source=('git+https://gitlab.freedesktop.org/wayland/wayland.git')
sha256sums=('SKIP')

pkgver() {
    cd wayland
    
    # git, tags available
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}

build() {
    cd wayland

    export CC='gcc -m32'
    export PKG_CONFIG_PATH=/usr/lib32/pkgconfig

    ./autogen.sh \
        --prefix='/usr' \
	--libdir=/usr/lib32 \
	--disable-documentation \
        --disable-static 
        
    sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
    
    make
}

package() {

     make DESTDIR="${pkgdir}" -C wayland install
     rm -rf "${pkgdir}"/usr/{bin,include,share}

     install -dm 755 "${pkgdir}"/usr/share/licenses
     ln -s wayland "${pkgdir}"/usr/share/licenses/lib32-wayland
}