[arch-commits] Commit in jasper/trunk (PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Wed Jul 22 20:24:09 UTC 2020
Date: Wednesday, July 22, 2020 @ 20:24:08
Author: anthraxx
Revision: 392387
upgpkg: jasper 2.0.17-1
Modified:
jasper/trunk/PKGBUILD
----------+
PKGBUILD | 34 ++++++++++++++++++++--------------
1 file changed, 20 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-07-22 20:24:01 UTC (rev 392386)
+++ PKGBUILD 2020-07-22 20:24:08 UTC (rev 392387)
@@ -3,8 +3,8 @@
pkgbase=jasper
pkgname=('jasper' 'jasper-doc')
-pkgver=2.0.16
-pkgrel=2
+pkgver=2.0.17
+pkgrel=1
pkgdesc='Software-based implementation of the codec specified in the emerging JPEG-2000 Part-1 standard'
url='https://www.ece.uvic.ca/~mdadams/jasper/'
arch=('x86_64')
@@ -13,18 +13,20 @@
options=('staticlibs')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/mdadams/jasper/archive/version-${pkgver}.tar.gz
jasper-1.900.1-fix-filename-buffer-overflow.patch)
-sha512sums=('b3bca227f833567c9061c4a29c0599784ed6a131b5cceddfd1696542d19add821eda445ce6d83782b454b266723b24d0f028cbc644a25c0e3a75304e615b34ee'
+sha512sums=('9b682cfef7e951e6a78b57869fb7ddeb696aaa1b90f08c3142d2f26246ea06ed5f2cd867dae0b49ac41a792e4672db7cd96d32a46a6e99c066b7118b025a65fe'
'b8d798bf75523c5db263783e42c653dd0cb03deee90be32eddf878bb6893cca02abadd94de6a8c737a5b7fe76f7fb245979f010765e6a95fc520b215e3a2a7f0')
+b2sums=('99ff72e826be620f7209752bf94cf6324b2d5410132d5de64055d3cc40e9f008dbcfcabf725c28067954ad9947b5b2bb9c9fd982e590b25ea617229e45b4a420'
+ '9b1927a437ed9b32491f07a210600b5a7d10711ec954dadc030a8238b67e9c6d1a8e67956fd7a5515e7060f0a1651fa86763e21d6d20592f8f00e9d3260722a1')
prepare() {
cd ${pkgbase}-version-${pkgver}
patch -p1 < "${srcdir}/jasper-1.900.1-fix-filename-buffer-overflow.patch"
sed -r 's|(CMAKE_SKIP_BUILD_RPATH) FALSE|\1 TRUE|g' -i CMakeLists.txt
- mkdir -p build-shared build-static
}
build() {
cd ${pkgbase}-version-${pkgver}
+
local options=(
-DCMAKE_INSTALL_PREFIX=/usr
-DCMAKE_INSTALL_LIBDIR=lib
@@ -34,16 +36,20 @@
-DJAS_ENABLE_AUTOMATIC_DEPENDENCIES=OFF
-DCMAKE_SKIP_RPATH=ON
)
- msg2 "Building static lib..."
- (cd build-static
- cmake ${options[@]} -DJAS_ENABLE_SHARED=OFF ..
- make
- )
- msg2 "Building shared lib..."
- (cd build-shared
- cmake ${options[@]} -DJAS_ENABLE_SHARED=ON ..
- make
- )
+
+ echo "Building static lib..."
+ cmake \
+ -B build-static \
+ "${options[@]}" \
+ -DJAS_ENABLE_SHARED=OFF
+ make -C build-static
+
+ echo "Building shared lib..."
+ cmake \
+ -B build-shared \
+ "${options[@]}" \
+ -DJAS_ENABLE_SHARED=ON
+ make -C build-shared
}
check() {
More information about the arch-commits
mailing list