milis/talimatname/genel/o/opensc/talimat

34 lines
911 B
Plaintext
Raw Normal View History

2018-06-09 00:06:58 +02:00
# Tanım: smart kartlar için araç seti ve kütüphane
# URL: https://github.com/OpenSC/OpenSC/wiki
# Paketçi: milisarge
# Gerekler: pcsc-lite libxslt docbook-xsl
isim=opensc
2018-06-12 16:20:47 +02:00
surum=0.18.0
2018-06-09 00:06:58 +02:00
devir=1
2018-06-12 16:20:47 +02:00
kaynak=(https://github.com/OpenSC/OpenSC/releases/download/$surum/opensc-$surum.tar.gz::$isim-$surum.tar.gz
bash-completion-path.patch)
2018-06-09 00:06:58 +02:00
derle() {
cd $isim-$surum
2018-06-12 16:20:47 +02:00
patch -Np0 -i "$SRC"/bash-completion-path.patch
2018-06-09 00:06:58 +02:00
export LIBS=-lltdl
_sheetdir=(/usr/share/xml/docbook/xsl-stylesheets-*)
./bootstrap
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--enable-man \
--disable-doc \
--enable-readline \
--enable-openssl \
--enable-pcsc \
--enable-zlib \
--enable-sm \
--with-xsl-stylesheetsdir="$_sheetdir"
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
make DESTDIR="$PKG" install
install -D -m644 etc/opensc.conf "$PKG/etc/opensc.conf"
}