diff options
author | pingplug | 2019-04-03 16:16:02 +0800 |
---|---|---|
committer | pingplug | 2019-04-03 16:16:02 +0800 |
commit | 569e30fb0f4af3c2febe3214542d6032f1c02559 (patch) | |
tree | eb77f03c352f46e1016c0764303e510444dcaece /PKGBUILD | |
parent | b41340c2cfda001a260b31e1036efc91cc193029 (diff) | |
download | aur-569e30fb0f4af3c2febe3214542d6032f1c02559.tar.gz |
Updated to 2.3.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 64 |
1 files changed, 33 insertions, 31 deletions
@@ -1,37 +1,37 @@ +# Maintainer: pingplug <pingplug@foxmail.com> +# Contributor: Schala Zeal <schalaalexiazeal@gmail.com> + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + pkgname=mingw-w64-openjpeg2 -pkgver=2.3.0 +pkgver=2.3.1 pkgrel=1 -arch=(any) pkgdesc="An open source JPEG 2000 codec, version ${pkgver} (mingw-w64)" -license=("custom: BSD") -depends=(mingw-w64-libpng mingw-w64-lcms2) -makedepends=(mingw-w64-cmake) -options=(staticlibs !strip !buildflags) +arch=('any') url="https://www.openjpeg.org" -source=("openjpeg-$pkgver.tar.gz::https://github.com/uclouvain/openjpeg/archive/v$pkgver.tar.gz" -"0001-fix-install-for-dlls.all.patch" -"0003-versioned-dlls.mingw.patch" -"0005-sock-jpip.all.patch") -sha256sums=('3dc787c1bb6023ba846c2a0d9b1f6e179f1cd255172bde9eb75b01f1e6c7d71a' +license=('BSD') +depends=('mingw-w64-libpng' + 'mingw-w64-lcms2') +makedepends=('mingw-w64-cmake') +options=('!strip' 'staticlibs' '!buildflags') +source=("openjpeg-${pkgver}.tar.gz::https://github.com/uclouvain/openjpeg/archive/v${pkgver}.tar.gz" + "0001-fix-install-for-dlls.all.patch" + "0003-versioned-dlls.mingw.patch") +sha256sums=('63f5a4713ecafc86de51bfad89cc07bb788e9bba24ebbf0c4ca637621aadb6a9' '3f3bde353ca3432f157258164c5e3c345af82ca3a9d5a68f815c3030b01cbc32' - 'a221300d278f1a57b1ea5c70314702cd4234a2560ed2335bd5940fd921e78eda' - 'b7b22dca26d5fd98ca5bc6ce775bbbabebc0e10fcf07fd0afb54d580699b8312') - -_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + '4d8d0310d24e7ec0a54cf71c06ff85831e37841046e13744e58f53b87e691560') prepare() { - cd openjpeg-$pkgver + cd openjpeg-${pkgver} sed -i '/add_subdirectory(thirdparty)/d' CMakeLists.txt patch -p1 -i "${srcdir}"/0001-fix-install-for-dlls.all.patch patch -p1 -i "${srcdir}"/0003-versioned-dlls.mingw.patch - patch -p1 -i "${srcdir}"/0005-sock-jpip.all.patch + #patch -p1 -i "${srcdir}"/0005-sock-jpip.all.patch } build() { - cd openjpeg-$pkgver - for _arch in ${_architectures}; do - unset LDFLAGS - + cd openjpeg-${pkgver} + for _arch in ${_architectures}; do mkdir "build-${_arch}-static" && pushd "build-${_arch}-static" ${_arch}-cmake \ -DCMAKE_BUILD_TYPE=Release \ @@ -41,7 +41,7 @@ build() { .. make popd - + mkdir "build-${_arch}-shared" && pushd "build-${_arch}-shared" ${_arch}-cmake \ -DCMAKE_BUILD_TYPE=Release \ @@ -55,14 +55,16 @@ build() { } package() { - for _arch in ${_architectures}; do - cd "${srcdir}/openjpeg-$pkgver/build-${_arch}-static" - make DESTDIR="$pkgdir" install - cd "${srcdir}/openjpeg-$pkgver/build-${_arch}-shared" - make DESTDIR="$pkgdir" install - find "$pkgdir/usr/${_arch}" -name '*.exe' -exec ${_arch}-strip {} \; - find "$pkgdir/usr/${_arch}" -name '*.dll' -exec ${_arch}-strip --strip-unneeded {} \; - find "$pkgdir/usr/${_arch}" -name '*.a' -o -name '*.dll' | xargs ${_arch}-strip -g - find "$pkgdir/usr/${_arch}/lib" -name '*.dll' -exec mv {} "$pkgdir/usr/${_arch}/bin" \; + for _arch in ${_architectures}; do + cd "${srcdir}/openjpeg-${pkgver}/build-${_arch}-static" + make DESTDIR="${pkgdir}" install + cd "${srcdir}/openjpeg-${pkgver}/build-${_arch}-shared" + make DESTDIR="${pkgdir}" install + find "${pkgdir}/usr/${_arch}" -name '*.exe' -exec ${_arch}-strip {} \; + find "${pkgdir}/usr/${_arch}" -name '*.dll' -exec ${_arch}-strip --strip-unneeded {} \; + find "${pkgdir}/usr/${_arch}" -name '*.a' -o -name '*.dll' | xargs ${_arch}-strip -g + find "${pkgdir}/usr/${_arch}/lib" -name '*.dll' -exec mv {} "${pkgdir}/usr/${_arch}/bin" \; done } + +# vim:set ts=2 sw=2 et: |