diff options
author | Martchus | 2022-06-15 00:23:09 +0200 |
---|---|---|
committer | Martchus | 2022-06-15 00:23:09 +0200 |
commit | cc1bd05580aa5b3af8321f0e5c1ad44dc51fe911 (patch) | |
tree | 7fceb0117cdd5718931c6b60a35f701976890b99 /PKGBUILD | |
parent | bf5def2a512f28d20c940c2bce2fc9ed893958e5 (diff) | |
download | aur-cc1bd05580aa5b3af8321f0e5c1ad44dc51fe911.tar.gz |
Update to 3.0.4
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 43 |
1 files changed, 21 insertions, 22 deletions
@@ -1,38 +1,36 @@ -# Maintainer: drakkan <nicola.murino at gmail dot com> +# Maintainer: Martchus <martchus@gmx.net> +# Contributor: drakkan <nicola.murino at gmail dot com> + pkgname=mingw-w64-jasper -pkgver=2.0.33 +pkgver=3.0.4 pkgrel=1 pkgdesc="A software-based implementation of the codec specified in the emerging JPEG-2000 Part-1 standard (mingw-w64)" arch=(any) -url='https://www.ece.uvic.ca/~mdadams/jasper/' +url='https://www.ece.uvic.ca/~frodo/jasper/' license=("custom:JasPer2.0") makedepends=('mingw-w64-cmake') depends=('mingw-w64-libjpeg-turbo') options=(staticlibs !strip !buildflags) -source=("https://github.com/jasper-software/jasper/releases/download/version-${pkgver}/jasper-${pkgver}.tar.gz" - "jasper-1.900.1-fix-filename-buffer-overflow.patch" - "001-mingw-cmake.patch" - "004-jasper-exports.patch" - "jasper-static-fix.patch") - -sha256sums=('28d28290cc2eaf70c8756d391ed8bcc8ab809a895b9a67ea6e89da23a611801a' - 'f51377e9b3e4faaa6b17b2d5fcf6f6d94fe2916a65dc9c78b5a99b891f5726dc' - '2b261c9b40b973d0d11f7b2b6842b36aee45657cbd5e0780fa73cb184f570b65' - 'aef39fbaf65c0453a785eb563253f2bb66806ddbebcd836b8bd8dce67c7059eb' - '3102b4175d714df84a63b8ebf3c0f346fc09a0a784a560917994f6074d6b1697') +source=(${pkgname}-${pkgver}.tar.gz::https://github.com/mdadams/jasper/archive/version-${pkgver}.tar.gz + 0001-Fix-exports.patch + 0002-Fix-building-for-mingw-w64-target.patch + 0003-Fix-filename-buffer-overflow.patch) +sha512sums=('1846d5c5c263ea9f3279a33e9be50350d2e91ea91271af5e6423b3fd87e069abc51290196f0e4ef72e54b0e727171d66562c0b855396afbed06dc9b0bb7bef04' + '0eb2588a54e154ca93977088a63b7261bed605047e51ae0e9d537b0abbb5846a94f47f3e5df7cfd753d12c80273b922c74a752578938d3ba4da81f3b756b0ffb' + 'bd61f586bc910fd698d5f3e66a7892a63ee85eabc6c2802672d607d1b7b3fda6e412973f5bcc7b47db2c80b3c627f679dd45cbe2d13b08f8520314d4d29e2468' + '31d900b6c160205151cbfac9f36fa0e5243dc87b0b8eab159cfa0b6935d87dd08119a52a0f853e6c2f3f754ca6c0030ec229379deb68ba16befd5f99983112ad') _architectures="i686-w64-mingw32 x86_64-w64-mingw32" prepare() { - cd "$srcdir/jasper-$pkgver" - patch -p1 -i "${srcdir}"/jasper-1.900.1-fix-filename-buffer-overflow.patch - patch -p1 -i "${srcdir}"/001-mingw-cmake.patch - patch -p1 -i "${srcdir}"/004-jasper-exports.patch - patch -p1 -i "${srcdir}"/jasper-static-fix.patch + cd "$srcdir/jasper-version-$pkgver" + patch -p1 -i "${srcdir}"/0001-Fix-exports.patch + patch -p1 -i "${srcdir}"/0002-Fix-building-for-mingw-w64-target.patch + patch -p1 -i "${srcdir}"/0003-Fix-filename-buffer-overflow.patch } build() { - cd "$srcdir/jasper-$pkgver" + cd "$srcdir/jasper-version-$pkgver" local options=( -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=Release @@ -41,6 +39,7 @@ build() { -DJAS_ENABLE_AUTOMATIC_DEPENDENCIES=OFF -DCMAKE_SKIP_RPATH=ON -DJAS_ENABLE_DOC=OFF + -DJAS_STDC_VERSION=201112L ) for _arch in ${_architectures}; do mkdir -p build-${_arch}-static && pushd build-${_arch}-static @@ -56,9 +55,9 @@ build() { package() { for _arch in ${_architectures}; do - cd "${srcdir}/jasper-${pkgver}/build-${_arch}-static" + cd "${srcdir}/jasper-version-${pkgver}/build-${_arch}-static" make DESTDIR="$pkgdir" install - cd "${srcdir}/jasper-${pkgver}/build-${_arch}" + cd "${srcdir}/jasper-version-${pkgver}/build-${_arch}" make DESTDIR="$pkgdir" install rm -r "$pkgdir/usr/${_arch}/share" ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll |