summaryrefslogtreecommitdiff
path: root/user/libqrcodegen/APKBUILD
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2020-02-04 05:57:00 +0000
committerMax Rees <maxcrees@me.com>2020-02-04 19:36:05 -0600
commit38c71c751856ba192ebbb44fb8c13a7a3aee4e69 (patch)
treeb829c30cbbc27a337517894eb599b29f6c30e08d /user/libqrcodegen/APKBUILD
parent691f8accf980d6f545c93677719591d730df89ac (diff)
downloadpackages-38c71c751856ba192ebbb44fb8c13a7a3aee4e69.tar.gz
packages-38c71c751856ba192ebbb44fb8c13a7a3aee4e69.tar.bz2
packages-38c71c751856ba192ebbb44fb8c13a7a3aee4e69.tar.xz
packages-38c71c751856ba192ebbb44fb8c13a7a3aee4e69.zip
user/libqrcodegen: new package
Diffstat (limited to 'user/libqrcodegen/APKBUILD')
-rw-r--r--user/libqrcodegen/APKBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/user/libqrcodegen/APKBUILD b/user/libqrcodegen/APKBUILD
new file mode 100644
index 000000000..28b6e890e
--- /dev/null
+++ b/user/libqrcodegen/APKBUILD
@@ -0,0 +1,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"