archrelease: copy trunk to community-any
[ArchLinux/community.git] / lib32-libxau / repos / multilib-x86_64 / PKGBUILD
blobd215cace75fefac6c0994bb8d5ed206d385acd0e
1 # Maintainer: Alexander Baldeck <alexander@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
4 _pkgbasename=libxau
5 pkgname=lib32-$_pkgbasename
6 pkgver=1.0.11
7 pkgrel=1
8 pkgdesc="X11 authorisation library (32-bit)"
9 arch=(x86_64)
10 url="https://xorg.freedesktop.org/"
11 license=('custom')
12 depends=('lib32-glibc' $_pkgbasename)
13 makedepends=('pkgconf' 'xorgproto')
14 provides=('libXau.so')
15 options=('debug')
16 source=(${url}/releases/individual/lib/libXau-${pkgver}.tar.xz)
17 sha1sums=('0cf6d853fce4dc72d61c253d096408a313f1163b')
18 sha256sums=('f3fa3282f5570c3f6bd620244438dbfbdd580fc80f02f549587a0f8ab329bbeb')
20 build() {
21   cd "${srcdir}/libXau-${pkgver}"
23   export CC="gcc -m32"
24   export PKG_CONFIG="i686-pc-linux-gnu-pkg-config"
26   ./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib32
27   make
30 package() {
31   cd "${srcdir}/libXau-${pkgver}"
33   make DESTDIR="${pkgdir}" install
35   rm -rf "${pkgdir}"/usr/{include,share}
37   mkdir -p "$pkgdir/usr/share/licenses"
38   ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"