2020-01-29 19:47:34 +00:00
|
|
|
# Template file for 'qrcodegen'
|
|
|
|
pkgname=qrcodegen
|
2020-03-06 14:50:11 +00:00
|
|
|
version=1.6.0
|
2020-03-06 18:34:55 +00:00
|
|
|
revision=2
|
2020-01-29 19:47:34 +00:00
|
|
|
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"
|
2020-03-06 14:50:11 +00:00
|
|
|
checksum=8acee5a77325e075b910747ad4b1fdb1491b7e22d0b8f1b5a6ea15ea08ba33a8
|
2020-01-29 19:47:34 +00:00
|
|
|
|
2020-03-06 18:34:55 +00:00
|
|
|
CXXFLAGS="-fPIC"
|
|
|
|
|
2020-01-29 19:47:34 +00:00
|
|
|
do_install() {
|
|
|
|
sed -n "/^License/,/xxxx/p" ../Readme.markdown > LICENSE
|
|
|
|
vlicense LICENSE
|
2020-03-06 14:50:11 +00:00
|
|
|
vinstall QrCode.hpp 644 usr/include/qrcodegen
|
2020-01-29 19:47:34 +00:00
|
|
|
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"
|
|
|
|
}
|
|
|
|
}
|