blob: da674df200d080150bb7cb13a0f6cc7acc0536ed (
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
53
54
55
56
|
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=libjpeg-turbo-git
pkgver=2.1.3.r16.g290ddbf7
pkgrel=2
pkgdesc="JPEG codec with SIMD accelerated compression and decompression"
arch=('i686' 'x86_64')
url="https://libjpeg-turbo.org/"
license=('custom')
depends=('glibc')
makedepends=('git' 'cmake' 'nasm')
provides=("libjpeg-turbo=$pkgver" 'libjpeg' 'libjpeg.so' 'libturbojpeg.so')
conflicts=('libjpeg-turbo')
options=('staticlibs')
source=("git+https://github.com/libjpeg-turbo/libjpeg-turbo.git")
sha256sums=('SKIP')
pkgver() {
cd "libjpeg-turbo"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "libjpeg-turbo"
cmake \
-B "_build" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_INSTALL_LIBDIR="/usr/lib" \
-DWITH_JPEG8=1 \
./
make -C "_build"
}
check() {
cd "libjpeg-turbo"
make -C "_build" test
}
package() {
cd "libjpeg-turbo"
make \
-C "_build" \
DESTDIR="$pkgdir" \
docdir="/usr/share/doc/libjpeg-turbo" \
exampledir="/usr/share/doc/libjpeg-turbo" \
install
install -Dm644 "jpegint.h" "$pkgdir/usr/include" # required by other software
install -Dm644 "LICENSE.md" -t "$pkgdir/usr/share/licenses/libjpeg-turbo"
}
|