mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-27 13:02:14 +08:00
35 lines
955 B
Bash
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}
|
|
}
|