blob: 4c2674205ded5155e7e64df2b843480964d25f7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: Daniel Bermond <dbermond@archlinux.org>
pkgbase=openjph
pkgname=('openjph' 'openjph-doc')
pkgver=0.18.0
pkgrel=1
pkgdesc='Open-source implementation of JPEG2000 Part-15'
arch=('x86_64')
url='https://github.com/aous72/OpenJPH/'
license=('BSD-2-Clause')
makedepends=('cmake' 'doxygen' 'libtiff')
checkdepends=('expat')
source=("https://github.com/aous72/OpenJPH/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('2484908bf5a171cda957643d9bc85c39d58ef939016e2d1a00122b1cefbbd4f8')
build() {
cmake -B build -S "OpenJPH-${pkgver}" \
-G 'Unix Makefiles' \
-DCMAKE_BUILD_TYPE:STRING='None' \
-DCMAKE_INSTALL_PREFIX:PATH='/usr' \
-DOJPH_DISABLE_SSSE3:BOOL='ON' \
-DOJPH_DISABLE_SSE4:BOOL='ON' \
-DOJPH_DISABLE_AVX:BOOL='ON' \
-DOJPH_DISABLE_AVX2:BOOL='ON' \
-DOJPH_DISABLE_AVX512:BOOL='ON' \
-DOJPH_BUILD_TESTS:BOOL='ON' \
-Wno-dev
cmake --build build
cd "OpenJPH-${pkgver}/docs"
doxygen
}
check() {
ctest --test-dir build --output-on-failure
}
package_openjph() {
depends=('libtiff')
DESTDIR="$pkgdir" cmake --install build
install -D -m644 "OpenJPH-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
package_openjph-doc() {
pkgdesc+=' (documentation)'
arch=('any')
install -d -m755 "${pkgdir}/usr/share/doc"
install -D -m644 "OpenJPH-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
cp -dr --no-preserve='ownership' "OpenJPH-${pkgver}/docs/html" "${pkgdir}/usr/share/doc/openjph"
}
|