diff options
author | Schala | 2015-06-08 10:44:34 -0700 |
---|---|---|
committer | Schala | 2015-06-08 10:44:34 -0700 |
commit | 31b12fa530880293fcb14c9f59580ea149b59832 (patch) | |
tree | 3987ae4c644befb3f2f0b940f7b334c197f3009e | |
download | aur-31b12fa530880293fcb14c9f59580ea149b59832.tar.gz |
init
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9a37cfe39b3f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = mingw-w64-fontconfig + pkgdesc = A library for configuring and customizing font access (mingw-w64) + pkgver = 2.11.1 + pkgrel = 2 + url = http://www.fontconfig.org/release + arch = any + license = custom + makedepends = mingw-w64-configure + depends = mingw-w64-expat + depends = mingw-w64-freetype + options = staticlibs + options = !strip + options = !buildflags + source = http://www.fontconfig.org/release/fontconfig-2.11.1.tar.bz2 + sha256sums = dc62447533bca844463a3c3fd4083b57c90f18a70506e7a9f4936b5a1e516a99 + +pkgname = mingw-w64-fontconfig + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7bacce51d84e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +pkgname=mingw-w64-fontconfig +pkgver=2.11.1 +pkgrel=2 +pkgdesc="A library for configuring and customizing font access (mingw-w64)" +arch=(any) +url="http://www.fontconfig.org/release" +license=("custom") +makedepends=(mingw-w64-configure) +depends=(mingw-w64-expat mingw-w64-freetype) +options=(staticlibs !strip !buildflags) +source=("http://www.fontconfig.org/release/fontconfig-$pkgver.tar.bz2") +sha256sums=('dc62447533bca844463a3c3fd4083b57c90f18a70506e7a9f4936b5a1e516a99') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + cd fontconfig-$pkgver + for _arch in ${_architectures}; do + unset LDFLAGS + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-configure \ + --with-arch=${_arch%-w64-mingw32} + make + popd + done +} + +package() { + for _arch in ${_architectures}; do + cd "${srcdir}/fontconfig-${pkgver}/build-${_arch}" + make DESTDIR="$pkgdir" install + find "$pkgdir/usr/${_arch}" -name '*.exe' -o -name '*.def' | xargs rm + find "$pkgdir/usr/${_arch}" -name '*.dll' -exec ${_arch}-strip --strip-unneeded {} \; + find "$pkgdir/usr/${_arch}" -name '*.a' -o -name '*.dll' | xargs ${_arch}-strip -g + rm -r "$pkgdir/usr/${_arch}/"{etc,share} + done +} |