mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-23 09:22:12 +08:00
opensc 0.17.0 fix #48 [skip-ci]
This commit is contained in:
parent
7f97a96a82
commit
17f0165c3d
@ -1,5 +1,5 @@
|
||||
pkgname=opensc
|
||||
pkgver=0.15.0
|
||||
pkgver=0.17.0
|
||||
pkgrel=1
|
||||
pkgdesc='Tools and libraries for smart cards'
|
||||
arch=('x86_64')
|
||||
@ -8,17 +8,16 @@ license=('LGPL')
|
||||
backup=('etc/opensc.conf')
|
||||
makedepends=('docbook-xsl')
|
||||
depends=('openssl' 'pcsclite' 'libltdl')
|
||||
provides=('opensc-opendnie')
|
||||
conflicts=('opensc-opendnie')
|
||||
replaces=('opensc-opendnie')
|
||||
options=('!emptydirs')
|
||||
source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz")
|
||||
md5sums=('01e6b803865f7b7574ee65a7b2d63c17')
|
||||
source=("https://github.com/OpenSC/OpenSC/releases/download/$pkgver/opensc-$pkgver.tar.gz"
|
||||
bash-completion-path.patch)
|
||||
sha256sums=('be73c6816867ab4721e6a9ae7dba8e890c5f169f0a2cbb4bf354e0f30a948300'
|
||||
'bd0991dc8d68b21704104aba4d3470f4f4f50bf36547569ed032b48fd3aed811')
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
export LIBS=-lltdl
|
||||
_sheetdir=(/usr/share/xml/docbook/xsl-stylesheets-*)
|
||||
./bootstrap
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
@ -30,6 +29,7 @@ build() {
|
||||
--enable-zlib \
|
||||
--enable-sm \
|
||||
--with-xsl-stylesheetsdir="$_sheetdir"
|
||||
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
||||
make
|
||||
}
|
||||
|
||||
|
11
opensc/bash-completion-path.patch
Normal file
11
opensc/bash-completion-path.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- doc/tools/Makefile.am.orig
|
||||
+++ doc/tools/Makefile.am
|
||||
@@ -11,7 +11,7 @@
|
||||
endif
|
||||
|
||||
completion_DATA = $(patsubst $(srcdir)/%.1.xml, %, $(wildcard $(srcdir)/*.1.xml))
|
||||
-completiondir = $(sysconfdir)/bash_completion.d
|
||||
+completiondir = $(datarootdir)/bash-completion/completions
|
||||
|
||||
tools.html: $(srcdir)/tools.xml $(wildcard $(srcdir)/*.1.xml) $(wildcard $(srcdir)/*.5.xml)
|
||||
$(XSLTPROC) --nonet --path "$(srcdir)/..:$(xslstylesheetsdir)/html" --xinclude -o $@ html.xsl $<
|
Loading…
Reference in New Issue
Block a user