mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-03 11:22:56 +02:00
qrcodegen: enable C library build.
This commit is contained in:
parent
d8913172c4
commit
b143cc7597
1 changed files with 13 additions and 6 deletions
|
@ -1,10 +1,8 @@
|
||||||
# Template file for 'qrcodegen'
|
# Template file for 'qrcodegen'
|
||||||
pkgname=qrcodegen
|
pkgname=qrcodegen
|
||||||
version=1.6.0
|
version=1.6.0
|
||||||
revision=2
|
revision=3
|
||||||
wrksrc="QR-Code-generator-${version}"
|
wrksrc="QR-Code-generator-${version}"
|
||||||
build_wrksrc="cpp"
|
|
||||||
build_style=gnu-makefile
|
|
||||||
short_desc="QR Code generator library"
|
short_desc="QR Code generator library"
|
||||||
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
|
@ -14,11 +12,20 @@ checksum=8acee5a77325e075b910747ad4b1fdb1491b7e22d0b8f1b5a6ea15ea08ba33a8
|
||||||
|
|
||||||
CXXFLAGS="-fPIC"
|
CXXFLAGS="-fPIC"
|
||||||
|
|
||||||
|
do_build() {
|
||||||
|
for dir in c cpp
|
||||||
|
do
|
||||||
|
cd $dir && make && cd ..
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
sed -n "/^License/,/xxxx/p" ../Readme.markdown > LICENSE
|
sed -n "/^License/,/xxxx/p" Readme.markdown > LICENSE
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
vinstall QrCode.hpp 644 usr/include/qrcodegen
|
vinstall cpp/QrCode.hpp 644 usr/include/qrcodegen
|
||||||
vinstall libqrcodegen.a 644 usr/lib libqrcodegencpp.a
|
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() {
|
qrcodegen-devel_package() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue