diff --git a/root-packages/libccid/build.sh b/root-packages/libccid/build.sh new file mode 100644 index 000000000..221510921 --- /dev/null +++ b/root-packages/libccid/build.sh @@ -0,0 +1,12 @@ +TERMUX_PKG_HOMEPAGE=https://ccid.apdu.fr/ +TERMUX_PKG_DESCRIPTION="A generic USB CCID (Chip/Smart Card Interface Devices) driver and ICCD (Integrated Circuit(s) Card Devices)." +TERMUX_PKG_LICENSE="LGPL-2.1" +TERMUX_PKG_VERSION=1.4.30 +TERMUX_PKG_REVISION=0 +TERMUX_PKG_SRCURL=https://ccid.apdu.fr/files/ccid-1.4.30.tar.bz2 +TERMUX_PKG_SHA256=ac17087be08880a0cdf99a8a2799a4ef004dc6ffa08b4d9b0ad995f39a53ff7c +TERMUX_PKG_DEPENDS="libpcsclite, libusb, flex" + +termux_step_pre_configure() { + export LEXLIB=$TERMUX_PREFIX/lib/libfl.so +} diff --git a/root-packages/libpcsclite/build.sh b/root-packages/libpcsclite/build.sh new file mode 100644 index 000000000..ad0179a33 --- /dev/null +++ b/root-packages/libpcsclite/build.sh @@ -0,0 +1,21 @@ +TERMUX_PKG_HOMEPAGE=https://pcsclite.apdu.fr/ +TERMUX_PKG_DESCRIPTION="Middleware to access a smart card using SCard API (PC/SC)." +TERMUX_PKG_LICENSE="BSD 3-Clause" +TERMUX_PKG_VERSION=1.8.24 +TERMUX_PKG_REVISION=0 +TERMUX_PKG_SRCURL=https://pcsclite.apdu.fr/files/pcsc-lite-1.8.24.tar.bz2 +TERMUX_PKG_SHA256=b81864fa6a5ec776639c02ae89998955f7702a8d10e8b8f70023c5a599d97568 +TERMUX_PKG_DEPENDS="libusb" +TERMUX_PKG_DEVPACKAGE_DEPENDS="python2" +TERMUX_PKG_BUILD_DEPENDS="flex" +TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" +--exec-prefix=$TERMUX_PREFIX +--sbindir=$TERMUX_PREFIX/bin +--enable-ipcdir=$TERMUX_PREFIX/var/run +--disable-libsystemd +--disable-libudev" +TERMUX_PKG_INCLUDE_IN_DEVPACKAGE="bin/pcsc-spy share/man/man1/pcsc-spy.1.gz" + +termux_step_pre_configure() { + LDFLAGS+=" -llog" +} diff --git a/root-packages/libpcsclite/pcscd.subpackage.sh b/root-packages/libpcsclite/pcscd.subpackage.sh new file mode 100644 index 000000000..28994b62e --- /dev/null +++ b/root-packages/libpcsclite/pcscd.subpackage.sh @@ -0,0 +1,2 @@ +TERMUX_SUBPKG_DESCRIPTION="Middleware to access a smart card using SCard API (PC/SC). (daemon side)" +TERMUX_SUBPKG_INCLUDE="bin/pcscd share/man/man5/reader.conf.5.gz share/man/man8/pcscd.8.gz"