SHARE
TWEET

openct fixed /usr/sbin -> /usr/bin and added doxygen as dep.

a guest Jun 4th, 2013 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Marti Raudsepp <marti@juffo.org>
  2. # Contributor: JKAbrams <JKAbrams@AUR>
  3. # Contributor: kevku <kevku@msn.com>
  4. # Contributor: William Rea <sillywilly@gmail.com>
  5. # Contributor: Lorenzo Nizzi Grifi Gargiolli <lorenzo.nizzi.grifi@gmail.com>
  6. pkgname=openct
  7. pkgver=0.6.20
  8. pkgrel=6
  9. pkgdesc="Implements drivers for several smart card readers"
  10. arch=('i686' 'x86_64')
  11. url="https://github.com/OpenSC/openct/"
  12. options=('!libtool')
  13. license="LGPL"
  14. backup=('etc/openct.conf')
  15. depends=('pcsclite' 'libusb-compat' 'libtool')
  16. makedepends=('doxygen')
  17. source=("https://github.com/OpenSC/openct/archive/$pkgname-$pkgver.tar.gz"
  18.         'openct.rc'
  19.         'udev-sleep.patch')
  20. md5sums=('30e416c6c414466f685a5e2db8591c71'
  21.          '000bab3e5a98e49159e8190e2b318c74'
  22.          '1c8484195d3b8445ebdb9fdc2ee87736')
  23.  
  24. build() {
  25.         cd "$srcdir/$pkgname-$pkgname-$pkgver"
  26.         patch -p1 < $srcdir/udev-sleep.patch
  27.         ./bootstrap
  28.         ./configure --prefix=/usr \
  29.         --sbindir=/usr/bin \
  30.         --sysconfdir=/etc \
  31.         --localstatedir=/var \
  32.         --with-udev=/usr/lib/udev \
  33.         --enable-usb \
  34.         --enable-pcsc \
  35.         --disable-static
  36.  
  37.         make
  38. }
  39.  
  40. package() {
  41.         cd "$srcdir/$pkgname-$pkgname-$pkgver"
  42.         # Work around broken makefile
  43.         mkdir $pkgdir/etc
  44.         make DESTDIR="$pkgdir" install
  45.  
  46.         install -D etc/openct.udev $pkgdir/usr/lib/udev/rules.d/95-openct.rules
  47.         install -D -m755 $srcdir/openct.rc $pkgdir/etc/rc.d/openct
  48.  
  49.         mkdir -p $pkgdir/var/run/openct
  50. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top