archrelease: copy trunk to community-any
[ArchLinux/community.git] / opensc / repos / community-x86_64 / PKGBUILD
blobf1e3e0ab196adbd1622fd8a2fb9d1e74a036c943
1 # Maintainer: Alad
2 # Contributor: Timothy Redaelli <timothy.redaelli@gmail.com>
3 # Contributor: Sébastien Luttringer
4 # Contributor: kevku <kevku@msn.com>
6 pkgname=opensc
7 pkgver=0.23.0
8 pkgrel=1
9 pkgdesc='Tools and libraries for smart cards'
10 arch=('x86_64')
11 url='https://github.com/OpenSC/OpenSC/wiki'
12 license=('LGPL')
13 backup=('etc/opensc.conf')
14 makedepends=('docbook-xsl')
15 depends=('pcsclite' 'glib2' 'libltdl')
16 options=(!emptydirs !lto)
17 source=("https://github.com/OpenSC/OpenSC/releases/download/$pkgver/opensc-$pkgver.tar.gz")
18 sha512sums=('cd102cd64e719c59153960a4921b7525055045f16e6f6ffa8c9def6ce999a9c5098267b41f8753b41107f626bea20c34561002f5d38eddb4ce6b371913a17a1b')
20 build() {
21   cd $pkgname-$pkgver
23   _sheetdir=(/usr/share/xml/docbook/xsl-stylesheets-*-nons)
25   ./bootstrap
26   ./configure \
27     --prefix=/usr \
28     --sysconfdir=/etc \
29     --with-completiondir=/usr/share/bash-completion/completions \
30     --enable-man \
31     --enable-doc \
32     --enable-readline \
33     --enable-openssl \
34     --enable-pcsc \
35     --enable-zlib \
36     --enable-sm \
37     --with-xsl-stylesheetsdir="$_sheetdir"
39   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
41   make
44 package(){
45   cd $pkgname-$pkgver
47   make DESTDIR="$pkgdir" install
49   install -D -m644 etc/opensc.conf "$pkgdir/etc/opensc.conf"
52 # vim:set ts=2 sw=2 et: