diff options
author | Schala | 2015-06-15 17:26:57 -0700 |
---|---|---|
committer | Schala | 2015-06-15 17:26:57 -0700 |
commit | 761b5214e5b2f41d5268ae7887ae15f7142bc746 (patch) | |
tree | 691c4cfef805a5a441a1ee54a595df630241ecad /PKGBUILD | |
download | aur-761b5214e5b2f41d5268ae7887ae15f7142bc746.tar.gz |
init
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..018ddbb494c3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +pkgname=mingw-w64-kcodecs +pkgver=5.11.0 +pkgrel=1 +arch=(any) +pkgdesc="Provide a collection of methods to manipulate strings using various encodings (mingw-w64)" +license=("LGPL") +depends=(mingw-w64-qt5-base) +makedepends=(mingw-w64-cmake mingw-w64-extra-cmake-modules) +options=(staticlibs !strip !buildflags) +url="https://projects.kde.org/projects/frameworks/kcodecs" +source=("http://download.kde.org/stable/frameworks/${pkgver%.*}/kcodecs-${pkgver}.tar.xz") +md5sums=('5cfbb6836dbbdeddef9d889cf824f1bd') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + cd kcodecs-$pkgver + for _arch in ${_architectures}; do + unset LDFLAGS + mkdir "build-${_arch}" && pushd "build-${_arch}" + ${_arch}-cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ + -DBUILD_TESTING=OFF \ + .. + make + popd + done +} + +package() { + for _arch in ${_architectures}; do + cd "${srcdir}/${pkgname#mingw-w64-}-$pkgver/build-${_arch}" + make DESTDIR="$pkgdir" install + 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 -rf "$pkgdir/usr/${_arch}/share" + done +} |