diff options
author | xantares | 2015-07-20 20:27:40 +0200 |
---|---|---|
committer | xantares | 2015-07-20 20:27:40 +0200 |
commit | f5c9f7112fcfb0a3d8e9c445dbaa2ac95074ef36 (patch) | |
tree | 6156d7d55b71ed557c95e5547af72b2e8cf546ff | |
download | aur-f5c9f7112fcfb0a3d8e9c445dbaa2ac95074ef36.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 38 |
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ca880adff43b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = mingw-w64-expat + pkgdesc = An XML parser library (mingw-w64) + pkgver = 2.1.0 + pkgrel = 5 + url = http://expat.sourceforge.net + arch = any + license = custom + makedepends = mingw-w64-gcc + makedepends = mingw-w64-pkg-config + depends = mingw-w64-crt + options = !strip + options = !buildflags + options = staticlibs + source = http://downloads.sourceforge.net/expat/expat-2.1.0.tar.gz + md5sums = dd7dab7a5fea97d2a6a43f511449b7cd + +pkgname = mingw-w64-expat + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f1d4da3f3ad2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +pkgname=mingw-w64-expat +pkgver=2.1.0 +pkgrel=5 +pkgdesc="An XML parser library (mingw-w64)" +arch=(any) +url="http://expat.sourceforge.net" +license=("custom") +makedepends=(mingw-w64-gcc mingw-w64-pkg-config) +depends=(mingw-w64-crt) +options=(!strip !buildflags staticlibs) +source=("http://downloads.sourceforge.net/expat/expat-${pkgver}.tar.gz") +md5sums=('dd7dab7a5fea97d2a6a43f511449b7cd') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + for _arch in ${_architectures}; do + unset LDFLAGS + mkdir -p "${srcdir}/${pkgname}-${pkgver}-build-${_arch}" + cd "${srcdir}/${pkgname}-${pkgver}-build-${_arch}" + "${srcdir}"/expat-${pkgver}/configure \ + --prefix=/usr/${_arch} \ + --build=$CHOST \ + --host=${_arch} + make + done +} + +package() { + for _arch in ${_architectures}; do + cd "${srcdir}/${pkgname}-${pkgver}-build-${_arch}" + make DESTDIR="$pkgdir" install + rm "$pkgdir/usr/${_arch}/bin/xmlwf" + find "$pkgdir/usr/${_arch}" -name '*.dll' | xargs -rtl1 ${_arch}-strip --strip-unneeded + find "$pkgdir/usr/${_arch}" -name '*.a' -o -name '*.dll' | xargs -rtl1 ${_arch}-strip -g + rm -r "$pkgdir/usr/${_arch}/share" + done +} |