qrcodegen: rebuild with -fPIC, patch Makefile

This commit is contained in:
Jürgen Buchmüller 2020-01-29 22:59:49 +01:00
parent c9c58e2469
commit 6ae8c3f968

View file

@ -1,7 +1,7 @@
# Template file for 'qrcodegen'
pkgname=qrcodegen
version=1.5.0
revision=1
revision=2
wrksrc="QR-Code-generator-${version}"
build_wrksrc="cpp"
build_style=gnu-makefile
@ -12,11 +12,6 @@ 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