New package: qrcodegen-1.5.0

This commit is contained in:
Jürgen Buchmüller 2020-01-29 20:47:34 +01:00
parent 7541047e00
commit c2b0f307b9
2 changed files with 37 additions and 0 deletions

1
srcpkgs/qrcodegen-devel Symbolic link
View File

@ -0,0 +1 @@
qrcodegen

View File

@ -0,0 +1,36 @@
# Template file for 'qrcodegen'
pkgname=qrcodegen
version=1.5.0
revision=1
wrksrc="QR-Code-generator-${version}"
build_wrksrc="cpp"
build_style=gnu-makefile
short_desc="QR Code generator library"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="MIT"
homepage="https://www.nayuki.io/page/qr-code-generator-library"
distfiles="https://github.com/nayuki/QR-Code-generator/archive/v${version}.tar.gz"
checksum=6cf993c10fbf96b5e8f8e4eaad8ea1ca3bbc58fb4d00a4728b4f818c27fb4d5e
pre_build() {
vsed -i Makefile -e "s;\(CXXFLAGS += -Wall\) -fsanitize=undefined;\1;" \
-e "s; -O1;;"
}
do_install() {
sed -n "/^License/,/xxxx/p" ../Readme.markdown > LICENSE
vlicense LICENSE
for f in BitBuffer QrCode QrSegment; do
vinstall $f.hpp 644 usr/include/qrcodegen
done
vinstall libqrcodegen.a 644 usr/lib libqrcodegencpp.a
}
qrcodegen-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
}
}