blob: a3fd264fbd8f310cb03727d8078c65a54c7bac6a (
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
|
# Maintainer: Björn Bidar <theodorstormgrade@gmail.com>
_pkgname=qzxing
pkgname=$_pkgname-git
pkgver=05fdc3.r191.g961e24f
pkgrel=1
pkgdesc="Qt/QML wrapper library for the ZXing library. 1D/2D barcode image processing library"
arch=('i686' 'x86_64')
url="https://github.com/ftylitak/qzxing"
license=('Apache')
depends=('qt5-multimedia' 'qt5-declarative')
makedepends=('git')
provides=($_pkgname)
conflicts=($pkgname)
source=($_pkgname::git+https://github.com/Thaodan/qzxing#branch=wip_qml_plugin)
md5sums=('SKIP')
pkgver() {
cd "$_pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
mkdir -p "$srcdir"/build
cd "$srcdir"/build
qmake -makefile ../"$_pkgname"/src/QZXing.pro \
PREFIX=/usr \
CONFIG="qzxing_multimedia plugin"
make PREFIX=/usr
}
package() {
cd "$srcdir"/build
make install INSTALL_ROOT="$pkgdir"
}
# vim:set ts=2 sw=2 et:
|