31 lines
904 B
Bash
31 lines
904 B
Bash
# Template file for 'qrcodegen'
|
|
pkgname=qrcodegen
|
|
version=1.5.0
|
|
revision=2
|
|
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
|
|
|
|
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"
|
|
}
|
|
}
|