opensc 0.17.0 fix #48 [skip-ci]

This commit is contained in:
AlmAck 2018-03-18 23:25:33 +01:00
parent 7f97a96a82
commit 17f0165c3d
2 changed files with 18 additions and 7 deletions

View File

@ -1,5 +1,5 @@
pkgname=opensc pkgname=opensc
pkgver=0.15.0 pkgver=0.17.0
pkgrel=1 pkgrel=1
pkgdesc='Tools and libraries for smart cards' pkgdesc='Tools and libraries for smart cards'
arch=('x86_64') arch=('x86_64')
@ -8,17 +8,16 @@ license=('LGPL')
backup=('etc/opensc.conf') backup=('etc/opensc.conf')
makedepends=('docbook-xsl') makedepends=('docbook-xsl')
depends=('openssl' 'pcsclite' 'libltdl') depends=('openssl' 'pcsclite' 'libltdl')
provides=('opensc-opendnie')
conflicts=('opensc-opendnie')
replaces=('opensc-opendnie')
options=('!emptydirs') options=('!emptydirs')
source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz") source=("https://github.com/OpenSC/OpenSC/releases/download/$pkgver/opensc-$pkgver.tar.gz"
md5sums=('01e6b803865f7b7574ee65a7b2d63c17') bash-completion-path.patch)
sha256sums=('be73c6816867ab4721e6a9ae7dba8e890c5f169f0a2cbb4bf354e0f30a948300'
'bd0991dc8d68b21704104aba4d3470f4f4f50bf36547569ed032b48fd3aed811')
build() { build() {
cd $pkgname-$pkgver cd $pkgname-$pkgver
export LIBS=-lltdl
_sheetdir=(/usr/share/xml/docbook/xsl-stylesheets-*) _sheetdir=(/usr/share/xml/docbook/xsl-stylesheets-*)
./bootstrap
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--sysconfdir=/etc \ --sysconfdir=/etc \
@ -30,6 +29,7 @@ build() {
--enable-zlib \ --enable-zlib \
--enable-sm \ --enable-sm \
--with-xsl-stylesheetsdir="$_sheetdir" --with-xsl-stylesheetsdir="$_sheetdir"
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make make
} }

View 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 $<