summaryrefslogtreecommitdiffstats
path: root/main/jpeg/APKBUILD
blob: c795091a4d2a752f0678fec9300e50bbd92c9b9b (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
# Contributor: Carlo Landmeter <clandmeter at gmail>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=jpeg
pkgver=7
pkgrel=0
pkgdesc="JPEG image tools"
url="http://www.ijg.org/"
license="AS-IS"
depends=
makedepends=
install=
subpackages="$pkgname-doc $pkgname-dev libjpeg"
source="http://www.ijg.org/files/jpegsrc.v${pkgver}.tar.gz"

build() {
	cd "$srcdir"/$pkgname-$pkgver

	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--enable-shared 
	make || return 1
	make -j1 install DESTDIR="$pkgdir"
	install -Dm644 jpegint.h "$pkgdir"/usr/include/jpegint.h
}

libjpeg() {
	pkgdesc="JPEG image library"
	install -d "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/libjpeg* "$subpkgdir"/usr/lib/
}


md5sums="382ef33b339c299b56baf1296cda9785  jpegsrc.v7.tar.gz"