diff options
author | nontlikeuname | 2015-12-22 12:09:40 +0000 |
---|---|---|
committer | nontlikeuname | 2015-12-22 12:09:40 +0000 |
commit | c6aea9b0e827e32c30d19907e05e4d4e01474503 (patch) | |
tree | ce9164a9dd8a25319cd2fe89551140501a3d91c3 | |
parent | 6852f1ca991d21e6de711eb27d2d24de850dac8c (diff) | |
download | aur-c6aea9b0e827e32c30d19907e05e4d4e01474503.tar.gz |
Clean up, conform to Arch MinGW package guidlines
-rw-r--r-- | PKGBUILD | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -7,31 +7,31 @@ pkgdesc="A library providing a set of interfaces for accessibility (mingw-w64)" arch=('any') url="https://developer.gnome.org/atk/" license=('LGPL') -depends=('mingw-w64-glib2>=2.31.2') -makedepends=('mingw-w64-configure') -options=(!strip !buildflags staticlibs) +makedepends=('mingw-w64-gcc' 'mingw-w64-configure') +depends=('mingw-w64-crt' 'mingw-w64-glib2') +options=('!strip' '!buildflags' 'staticlibs') source=("http://ftp.gnome.org/pub/gnome/sources/atk/${pkgver:0:4}/atk-${pkgver}.tar.xz") md5sums=('fd3678f35004b4c92e3da39356996054') _architectures="i686-w64-mingw32 x86_64-w64-mingw32" build() { + cd "${srcdir}/atk-${pkgver}/" for _arch in ${_architectures}; do - mkdir -p ${srcdir}/atk-${pkgver}/build-${_arch} - cd ${srcdir}/atk-${pkgver}/build-${_arch} + mkdir -p build-${_arch} && pushd build-${_arch} ${_arch}-configure --disable-glibtest make + popd done } package() { - for _arch in $_architectures; do - cd "${srcdir}/atk-${pkgver}/build-${_arch}" + for _arch in ${_architectures}; do + cd ${srcdir}/atk-${pkgver}/build-${_arch} make DESTDIR="${pkgdir}" install - find "${pkgdir}/usr/${_arch}" -name '*.exe' -exec 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}/share" + ${_arch}-strip --strip-unneeded ${pkgdir}/usr/${_arch}/bin/*.dll + ${_arch}-strip -g ${pkgdir}/usr/${_arch}/lib/*.a + rm -r ${pkgdir}/usr/${_arch}/share done } |