summaryrefslogtreecommitdiff
path: root/libre/libjpeg-turbo-static/PKGBUILD
blob: 5b21c880a456e501b8f0dd58a3c2b273df787aab (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
# Maintainer: Márcio Silva <coadde@parabola.nu>
# based of libjpeg-turbo

_pkgname=libjpeg-turbo
pkgname=libjpeg-turbo-static
pkgver=1.4.2
pkgrel=2
pkgdesc='JPEG image codec with accelerated baseline compression and decompression (static libraries only)'
url='http://libjpeg-turbo.virtualgl.org/'
arch=('i686' 'x86_64' 'armv7h')
license=('custom')
makedepends=('nasm' 'jdk8-openjdk')
depends=('libjpeg-turbo')
source=("http://downloads.sourceforge.net/project/${_pkgname}/${pkgver}/${_pkgname}-${pkgver}.tar.gz")
sha1sums=('2666158ccd5318513f875867bbc4af52f6eb9f0b')

options=('!makeflags' 'staticlibs')

build() {
	cd "${srcdir}/${_pkgname}-${pkgver}"
	export JNI_CFLAGS='-I/usr/lib/jvm/default/include -I/usr/lib/jvm/default/include/linux'
	./configure \
		--prefix=/usr \
		--with-jpeg8 \
		--with-java \

	make
}

check() {
	cd "${srcdir}/${_pkgname}-${pkgver}"
	make test
}

package() {
	cd "${srcdir}/${_pkgname}-${pkgver}"
	make \
		DESTDIR="${pkgdir}" \
		install
	
	# remove conflicting files
	rm -vr ${pkgdir}/usr/{bin,include,share}
	rm -v ${pkgdir}/usr/lib/lib*.so*
}