aboutsummaryrefslogblamecommitdiffstats
path: root/community/zbar/APKBUILD
blob: 2a991568be79da96145c1c72a46a75dd04cc8d26 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                             


                                                      
           
        

                                      
          
                           


                                                                          





                                

                         

                                                                                       
         
 

                       
                      

 
         
                                                                       
            


           
                                      
                                    

 






















                                                                 
                                           
                                     
                                                          

 
                                                                                                                                                               
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Diego Queiroz <diego.queiroz@gmail.com>
# Maintainer: Diego Queiroz <diego.queiroz@gmail.com>
pkgname=zbar
pkgver=0.23
pkgrel=2
pkgdesc="Port of ZBAR BAR CODE READER"
url="http://zbar.sourceforge.net/"
arch="all"
license="LGPL-2.0-or-later"
depends="py3-gobject3"
makedepends="imagemagick-dev gtk+-dev qt5-qtx11extras-dev lcms2-dev
	automake autoconf libtool xmlto docbook-xsl libxv-dev python3-dev"
subpackages="
	$pkgname-dev
	$pkgname-doc
	lib$pkgname:zbarlibs
	lib${pkgname}qt:qtlibs
	lib${pkgname}gtk:gtklibs
	py3-${pkgname}:py
	"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/mchehab/zbar/archive/$pkgver.tar.gz
	"

prepare() {
	default_prepare
	autoreconf -fi
}

build() {
	./configure --prefix=/usr --disable-video --with-python=python3
	make
}

package() {
	make DESTDIR="$pkgdir" install
	rm -rf "$pkgdir"/usr/lib/*.a
}

zbarlibs() {
	depends=""
	pkgdesc="$pkgdesc (library)"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/libzbar.so.* "$subpkgdir"/usr/lib
}

qtlibs() {
	depends=""
	pkgdesc="$pkgdesc (Qt5 library)"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/libzbarqt.so.* "$subpkgdir"/usr/lib
}

gtklibs() {
	depends=""
	pkgdesc="$pkgdesc (Gtk+2 library)"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/libzbargtk.so.* "$subpkgdir"/usr/lib
}

py() {
	depends=""
	pkgdesc="python3 bindings for ZBar"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/python3* "$subpkgdir"/usr/lib
}

sha512sums="bc2667a2a5a5f2e9fd3f39e57bf1d7f860b20a0b5faffc38791d222a6ff0414aff880295ce5ccb92acce7250503f2a7f48ac12651cf82cfb1933b302da26e393  zbar-0.23.tar.gz"