blob: 6419fad1a4af2270549c65ee4b296a85ad325115 (
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
41
42
43
|
# Maintainer: Maxime Arthaud <maxime@arthaud.me>
pkgname=zxing-cpp-git
pkgver=r60.5aad474
pkgrel=1
pkgdesc="A command-line tool to decode QRCode"
arch=('any')
url="https://github.com/glassechidna/zxing-cpp"
license=('apache')
provides=('zxing-cpp')
makedepends=('git' 'cmake' 'cppunit')
optdepends=('opencv: support for opencv'
'gtkglext: required if building with opencv')
source=("$pkgname::git+https://github.com/glassechidna/zxing-cpp.git")
sha512sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$pkgname"
mkdir build
cd build
cmake -G "Unix Makefiles" \
-DCMAKE_CXX_FLAGS=-fPIC \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=ON \
..
make
}
check() {
cd "$srcdir/$pkgname/build"
./testrunner
}
package() {
cd "$srcdir/$pkgname/build"
make DESTDIR="$pkgdir" install
}
|