aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openjpeg/APKBUILD
blob: 5f1c0ae520da8bdfbf0c04f106e10a8287b9cb17 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer:
pkgname=openjpeg
pkgver=1.3
_pkgver="v${pkgver%.*}_${pkgver#*.}"
pkgrel=1
pkgdesc="open-source implementation of JPEG2000 image codec"
url="http://www.openjpeg.org/"
arch="all"
license="BSD"
depends=
depends_dev=
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="http://openjpeg.googlecode.com/files/openjpeg_${_pkgver}.tar.gz"

_builddir="${srcdir}/OpenJPEG_${_pkgver}"
prepare() {
	local i
	mkdir "$_builddir"
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="f9a3ccfa91ac34b589e9bf7577ce8ff9  openjpeg_v1_3.tar.gz"