diff --git a/opensc/PKGBUILD b/opensc/PKGBUILD index 7c3e47404..c1db36af2 100644 --- a/opensc/PKGBUILD +++ b/opensc/PKGBUILD @@ -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 } diff --git a/opensc/bash-completion-path.patch b/opensc/bash-completion-path.patch new file mode 100644 index 000000000..e6576aece --- /dev/null +++ b/opensc/bash-completion-path.patch @@ -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 $<