Ver código fonte

pcsc-lite: update to 2.4.1, switch to meson

Waldemar Brodkorb 3 meses atrás
pai
commit
72c28c3edc

+ 12 - 7
package/pcsc-lite/Makefile

@@ -4,25 +4,30 @@
 include $(ADK_TOPDIR)/rules.mk
 
 PKG_NAME:=		pcsc-lite
-PKG_VERSION:=		1.8.13
+PKG_VERSION:=		2.4.1
 PKG_RELEASE:=		1
-PKG_HASH:=		f315047e808d63a3262c4a040f77548af2e04d1fd707e0c2759369b926fbbc3b
+PKG_HASH:=		afd3ba68c8000d2be048dc292df99a9812df9ad2efaf0a366eea22ac1faa19a7
 PKG_DESCR:=		middleware for smartcards
 PKG_SECTION:=		app/crypto
 PKG_DEPENDS:=		libusb libusb-compat
 PKG_BUILDDEP:=		libusb libusb-compat
 PKG_NEEDS:=		threads
-PKG_URL:=		http://pcsclite.alioth.debian.org/
-PKG_SITES:=		https://alioth.debian.org/frs/download.php/file/4126/
+PKG_URL:=		https://pcsclite.apdu.fr/
+PKG_SITES:=		https://pcsclite.apdu.fr/files/
 PKG_OPTS:=		dev
 
-DISTFILES:=		$(PKG_NAME)-$(PKG_VERSION).tar.bz2
-
 include $(ADK_TOPDIR)/mk/package.mk
 
 $(eval $(call PKG_template,PCSC_LITE,pcsc-lite,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
 
-CONFIGURE_ARGS+=	--disable-libudev
+WRKBUILD=               $(WRKDIR)/$(PKG_NAME)-obj
+
+MESON_FLAGS+=		-Dlibsystemd=false \
+			-Dpolkit=false
+
+CONFIG_STYLE:=		meson
+BUILD_STYLE:=		meson
+INSTALL_STYLE:=		meson
 
 pcsc-lite-install:
 	$(INSTALL_DIR) $(IDIR_PCSC_LITE)/etc/reader.conf.d

+ 14 - 0
package/pcsc-lite/patches/patch-meson_build

@@ -0,0 +1,14 @@
+--- pcsc-lite-2.4.1.orig/meson.build	2026-01-01 18:37:00.000000000 +0100
++++ pcsc-lite-2.4.1/meson.build	2026-05-15 16:16:56.546198998 +0200
+@@ -217,11 +217,6 @@ if get_option('default_library') != 'sta
+   install_data('src/spy/setup_spy.sh',
+     install_dir : 'share/doc/pcsc-lite')
+ 
+-  run_command('pod2man',
+-    ['--date=2024-01-01', 'src/spy/pcsc-spy.pod', 'pcsc-spy.1'],
+-    check : true)
+-  install_data('pcsc-spy.1',
+-    install_dir : join_paths(get_option('mandir'), 'man1'))
+ endif
+ 
+ # static library