lib32/lib32-wayland/PKGBUILD
Francesco Marinucci e7521791c2 added lib32-wayland
2014-06-04 16:18:07 +00:00

35 lines
955 B
Bash

# Maintainer: Francesco Marinucci <franzmari [at] chakra-project [dot] it>
_pkgbasename=wayland
pkgname=lib32-$_pkgbasename
pkgver=1.3.0
pkgrel=1
pkgdesc='A computer display server protocol'
arch=('x86_64')
url='http://wayland.freedesktop.org'
license=('MIT')
depends=('lib32-libffi' 'lib32-expat' $_pkgbasename=$pkgver )
source=("http://wayland.freedesktop.org/releases/wayland-${pkgver}.tar.xz")
sha256sums=('2e817685f68a26acd19964d69ddbc4549ba5412114ad95e1a9f5934cce470d6e')
build() {
cd ${_pkgbasename}-${pkgver}
export CC='gcc -m32'
export CXX='g++ -m32'
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
./configure --prefix='/usr' --libdir='/usr/lib32' --disable-{documentation,static}
make
}
package() {
cd ${_pkgbasename}-${pkgver}
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}"/usr/{bin,include,share}
install -dm 755 "${pkgdir}"/usr/share/licenses
ln -s ${_pkgbasename} "${pkgdir}"/usr/share/licenses/${pkgname}
}