blob: 011780907adc9df4eb0d39ef45a4b4e620a8e5f9 (
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
|
# Maintainer: Daniel Bermond <dbermond@archlinux.org>
pkgname=quirc-git
pkgver=1.2.r3.gfd13bfb
pkgrel=1
pkgdesc='QR decoder library (git version)'
arch=('x86_64')
url='https://github.com/dlbeer/quirc/'
license=('ISC')
depends=('libjpeg' 'libpng' 'sdl_gfx' 'sdl12-compat' 'v4l-utils')
makedepends=('git')
provides=('quirc')
conflicts=('quirc')
source=('git+https://github.com/dlbeer/quirc.git')
sha256sums=('SKIP')
pkgver() {
git -C quirc describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}
build() {
CFLAGS+=' -fPIC' make -C quirc libquirc.so quirc-demo quirc-scanner
}
package() {
install -d -m755 "${pkgdir}/usr"/{bin,include,lib}
make -C quirc DESTDIR="$pkgdir" PREFIX='/usr' install
install -D -m644 quirc/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|