void-packages/srcpkgs/qrcodegen/template

29 lines
760 B
Bash

# Template file for 'qrcodegen'
pkgname=qrcodegen
version=1.8.0
revision=1
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=2ec0a4d33d6f521c942eeaf473d42d5fe139abcfa57d2beffe10c5cf7d34ae60
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/qrcodegen.hpp 644 usr/include/qrcodegen
vinstall cpp/libqrcodegencpp.a 644 usr/lib
vinstall c/qrcodegen.h 644 usr/include/qrcodegen
vinstall c/libqrcodegen.a 644 usr/lib
}