void-packages/srcpkgs/zbar/template

41 lines
1.1 KiB
Bash
Raw Normal View History

2017-05-04 10:34:43 +02:00
# Template file for 'zbar'
pkgname=zbar
version=0.10
2017-05-07 16:59:10 +02:00
revision=2
2017-05-04 10:34:43 +02:00
build_style=gnu-configure
configure_args="--with-qt --with-gtk"
hostmakedepends="automake pkg-config libtool gettext-devel python qt-qmake qt-host-tools glib-devel"
2017-05-04 10:34:43 +02:00
makedepends="libmagick-devel libXv-devel pygtk-devel qt-devel v4l-utils-devel"
short_desc="A barcode reading library and application"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="LGPL-2"
homepage="https://zbar.sourceforge.net/"
distfiles="$SOURCEFORGE_SITE/zbar/${version}/${pkgname}-${version}.tar.bz2"
checksum=234efb39dbbe5cef4189cc76f37afbe3cfcfb45ae52493bfe8e191318bdbadc6
depends="libzbar-${version}_${revision}"
CFLAGS="-DNDEBUG"
pre_configure() {
export PYTHON_CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python2.7"
autoreconf -fi
}
2017-05-04 10:34:43 +02:00
libzbar_package() {
short_desc+=" - library files"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
libzbar-devel_package() {
short_desc+=" - development files"
depends="libzbar>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}