# Maintainer: Vincent Grande # Contributor: Daniel Bermond < gmail-com: danielbermond > # Contributor: Joel Teichroeb # 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 }