summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Staal2015-08-23 09:22:28 +0200
committerJens Staal2015-08-23 09:22:28 +0200
commit41f20c751d43f6b6237264e7f32d69aa2120d7fe (patch)
tree515746b0efa0ff7cde409bc40866c0b350fc7c17
downloadaur-41f20c751d43f6b6237264e7f32d69aa2120d7fe.tar.gz
libxau for mingw, dependency of xcb
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD46
2 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f03e5c326dd
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = mingw-w64-libxau
+ pkgdesc = X11 authorisation library (mingw-w64)
+ pkgver = 1.0.8
+ pkgrel = 1
+ url = http://xorg.freedesktop.org/
+ arch = any
+ license = custom
+ makedepends = pkgconfig
+ makedepends = mingw-w64-configure
+ makedepends = mingw-w64-gcc
+ depends = mingw-w64-crt
+ depends = mingw-w64-xproto
+ options = !strip
+ options = staticlibs
+ options = !buildflags
+ source = http://xorg.freedesktop.org//releases/individual/lib/libXau-1.0.8.tar.bz2
+ sha256sums = fdd477320aeb5cdd67272838722d6b7d544887dfe7de46e1e7cc0c27c2bea4f2
+
+pkgname = mingw-w64-libxau
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..505fa5ba042
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer Jens Staal <staal1978@gmail.com>
+# adopted from official libxau package:
+# Maintainer: AndyRTR <andyrtr@archlinux.org>
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+# Contributor: Alexander Baldeck <alexander@archlinux.org>
+
+pkgname=mingw-w64-libxau
+pkgver=1.0.8
+pkgrel=1
+pkgdesc="X11 authorisation library (mingw-w64)"
+arch=('any')
+url="http://xorg.freedesktop.org/"
+depends=('mingw-w64-crt' 'mingw-w64-xproto')
+makedepends=('pkgconfig' 'mingw-w64-configure' 'mingw-w64-gcc')
+license=('custom')
+source=(${url}/releases/individual/lib/libXau-${pkgver}.tar.bz2)
+sha256sums=('fdd477320aeb5cdd67272838722d6b7d544887dfe7de46e1e7cc0c27c2bea4f2')
+options=('!strip' 'staticlibs' '!buildflags')
+
+_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+
+build() {
+ cd libXau-${pkgver}
+ for _arch in ${_architectures}; do
+ mkdir -p build-${_arch} && pushd build-${_arch}
+ export CFLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4"
+ export CXXFLAGS=$CFLAGS
+ export LDFLAGS="$LDFLAGS -lssp"
+ ${_arch}-configure
+ make
+ popd
+ done
+}
+
+package() {
+ cd libXau-${pkgver}
+ for _arch in ${_architectures}; do
+ cd "${srcdir}/libXau-${pkgver}/build-${_arch}"
+ make DESTDIR="$pkgdir" install
+ rm -r "${pkgdir}/usr/${_arch}/share"
+ rm -f "${pkgdir}"/usr/${_arch}/bin/*.exe
+ ${_arch}-strip --strip-unneeded "${pkgdir}"/usr/${_arch}/bin/*.dll
+ ${_arch}-strip -g "${pkgdir}"/usr/${_arch}/lib/*.a
+ done
+}