mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
92ae946057
commit
6d7d374a78
1 changed files with 54 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
distributable:
|
distributable:
|
||||||
url: https://pcsclite.apdu.fr/files/pcsc-lite-{{ version }}.tar.bz2
|
url: https://pcsclite.apdu.fr/files/pcsc-lite-{{ version }}.tar.xz
|
||||||
strip-components: 1
|
strip-components: 1
|
||||||
ref: v{{version}}}
|
ref: v{{version}}}
|
||||||
|
|
||||||
|
@ -20,16 +20,56 @@ dependencies:
|
||||||
build:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
cmake.org: ^3
|
cmake.org: ^3
|
||||||
|
mesonbuild.com: ^1
|
||||||
|
ninja-build.org: ^1
|
||||||
github.com/westes/flex: '*'
|
github.com/westes/flex: '*'
|
||||||
perl.org: ^5 # pod2man
|
perl.org: ^5 # pod2man
|
||||||
script:
|
script:
|
||||||
- ./configure $ARGS
|
|
||||||
- make install
|
|
||||||
- run: |
|
- run: |
|
||||||
|
./configure $ARGS
|
||||||
|
make install
|
||||||
|
|
||||||
|
cd '{{prefix}}/include'
|
||||||
|
|
||||||
mv PCSC/* .
|
mv PCSC/* .
|
||||||
rmdir PCSC
|
rmdir PCSC
|
||||||
ln -s . PCSC
|
ln -s . PCSC
|
||||||
working-directory: ${{ prefix }}/include
|
if: <2.2
|
||||||
|
|
||||||
|
# everything changes in 2.2
|
||||||
|
- run: |
|
||||||
|
meson setup . .. $MESON_ARGS
|
||||||
|
meson compile --verbose
|
||||||
|
|
||||||
|
# this tries to write to /sbin regardless of options;
|
||||||
|
# so we do it by hand
|
||||||
|
# meson install
|
||||||
|
|
||||||
|
mkdir -p '{{prefix}}'/{bin,include,lib/pkgconfig,sbin,share/man/man{1,8}}
|
||||||
|
|
||||||
|
# bin
|
||||||
|
cp ../src/spy/pcsc-spy '{{prefix}}/bin/pcscd-spy'
|
||||||
|
|
||||||
|
# include
|
||||||
|
cp pcsclite.h ../src/PCSC/*.h '{{prefix}}/include/'
|
||||||
|
ln -s . '{{prefix}}/include/PCSC'
|
||||||
|
|
||||||
|
# lib
|
||||||
|
if test "{{hw.platform}}" = "darwin"; then
|
||||||
|
cp libpcsc{lite,spy}.*dylib '{{prefix}}/lib/'
|
||||||
|
else
|
||||||
|
cp libpcsc{lite,spy}.so{,.?} '{{prefix}}/lib/'
|
||||||
|
fi
|
||||||
|
cp meson-private/libpcsclite.pc '{{prefix}}/lib/pkgconfig/'
|
||||||
|
|
||||||
|
# sbin
|
||||||
|
cp pcscd '{{prefix}}/sbin/pcscd'
|
||||||
|
|
||||||
|
# share
|
||||||
|
cp ../pcsc-spy.1 '{{prefix}}/share/man/man1/'
|
||||||
|
cp pcscd.8 '{{prefix}}/share/man/man8/'
|
||||||
|
working-directory: build
|
||||||
|
if: '>=2.2'
|
||||||
env:
|
env:
|
||||||
ARGS:
|
ARGS:
|
||||||
- --disable-dependency-tracking
|
- --disable-dependency-tracking
|
||||||
|
@ -38,9 +78,19 @@ build:
|
||||||
- --sysconfdir=/etc
|
- --sysconfdir=/etc
|
||||||
# TODO: freedesktop.org/polkit
|
# TODO: freedesktop.org/polkit
|
||||||
- --disable-polkit
|
- --disable-polkit
|
||||||
|
MESON_ARGS:
|
||||||
|
- --prefix={{prefix}}
|
||||||
|
- --sbindir={{prefix}}/sbin
|
||||||
|
- --buildtype=release
|
||||||
|
- -Dpolkit=false
|
||||||
|
linux:
|
||||||
|
LDFLAGS: $LDFLAGS -ldl
|
||||||
darwin:
|
darwin:
|
||||||
ARGS:
|
ARGS:
|
||||||
- --disable-libsystemd
|
- --disable-libsystemd
|
||||||
|
MESON_ARGS:
|
||||||
|
- -Dlibsystemd=false
|
||||||
|
- -Dlibudev=false
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
- bin/pcscd
|
- bin/pcscd
|
||||||
|
|
Loading…
Reference in a new issue