39 lines
967 B
Bash
39 lines
967 B
Bash
# Template file for 'qrcodegen'
|
|
pkgname=qrcodegen
|
|
reverts="1.7.0_1"
|
|
version=1.6.0
|
|
revision=4
|
|
short_desc="QR Code generator library"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
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=8acee5a77325e075b910747ad4b1fdb1491b7e22d0b8f1b5a6ea15ea08ba33a8
|
|
|
|
CXXFLAGS="-fPIC"
|
|
|
|
do_build() {
|
|
for dir in c cpp
|
|
do
|
|
cd $dir && make && cd ..
|
|
done
|
|
}
|
|
|
|
do_install() {
|
|
sed -n "/^License/,/xxxx/p" Readme.markdown > LICENSE
|
|
vlicense LICENSE
|
|
vinstall cpp/QrCode.hpp 644 usr/include/qrcodegen
|
|
vinstall cpp/libqrcodegen.a 644 usr/lib libqrcodegencpp.a
|
|
vinstall c/qrcodegen.h 644 usr/include/qrcodegen
|
|
vinstall c/libqrcodegen.a 644 usr/lib
|
|
}
|
|
|
|
qrcodegen-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
}
|
|
}
|