summaryrefslogtreecommitdiff
path: root/user/libqrcodegen/APKBUILD
blob: 28b6e890ef3ed45b429b0d006c8e47aba79e54c4 (plain) (blame)
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
# Contributor: Max Rees <maxcrees@me.com>
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=libqrcodegen
pkgver=1.5.0
pkgrel=0
pkgdesc="Multi-language QR code generation library"
url="https://www.nayuki.io/page/qr-code-generator-library"
arch="all"
options="!dbg !check"  # No test suite.
license="MIT"
depends=""
makedepends=""
source="libqrcodegen-$pkgver.tar.gz::https://github.com/nayuki/QR-Code-generator/archive/v$pkgver.tar.gz
	cxxflags.patch
	"
builddir="$srcdir/QR-Code-generator-$pkgver"

build() {
	CXXFLAGS="$CXXFLAGS -fPIC" make -C cpp
}

package() {
	install -Dm644 cpp/libqrcodegen.a "$pkgdir"/usr/lib/libqrcodegencpp.a
	for i in QrCode QrSegment BitBuffer; do
		install -Dm644 cpp/"$i".hpp \
			"$pkgdir"/usr/include/qrcodegen/"$i".hpp
	done
}

sha512sums="f7887bb1901a7de3f198c7483c35c26552fc51b4a25a5a0e5878562ab9742fc55da33eb01984aab35866b0f092405da3462dc389d125c8c474e4312a57d4183e  libqrcodegen-1.5.0.tar.gz
0d0a48eaa084c0ce2ac1acc3c634e5cea4a56864b18aab740ff0f0513b3dc300ec5dfde2e2dd86f3031102de565b849ec11d3fe721862c73bb0df89395103a97  cxxflags.patch"