aboutsummaryrefslogblamecommitdiffstats
path: root/main/jbig2dec/APKBUILD
blob: 2dcddd7f5d260f7dec3e42c4604e93d2649887ff (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                    
                                                   
                
           

                                                
                                              

               

              
                                                    

                                       
                                                                                 









                                                                        
                       















                                                  

 


                                                                                                                                                                   
# Contributor: Michael Zhou <zhoumichaely@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=jbig2dec
pkgver=0.13
pkgrel=0
pkgdesc="JBIG2 image compression format decoder"
url="http://www.ghostscript.com/jbig2dec.html"
arch="all"
license="GPL2+"
depends=""
depends_dev=""
makedepends="$depends_dev autoconf automake libtool"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.ghostscript.com/public/jbig2dec/jbig2dec-$pkgver.tar.gz"

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

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

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

md5sums="6efc70db0017516e11913280990623fb  jbig2dec-0.13.tar.gz"
sha256sums="5aaca0070992cc2e971e3bb2338ee749495613dcecab4c868fc547b4148f5311  jbig2dec-0.13.tar.gz"
sha512sums="ef64a65c54bec65f61602de7130dc9594aae58aaea7958f7cc987f25d0794511e15a423e86501ace4f40c0364796fb97ceab72edb0b69232926767ba16c1b05d  jbig2dec-0.13.tar.gz"