summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 45e35666eac860c024ef2577555e5a2c1eb6d4f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
pkgname=gppcscconnectionplugin
pkgver=1.1.0
gplib=6.0.0
pkgrel=1
pkgdesc="GlobalPlatform pcsc connection plugin"
license=('GPL3')
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/globalplatform/"
depends=('glibc' 'pcsclite' 'openssl' 'globalplatform')
source=("https://sourceforge.net/projects/globalplatform/files/GlobalPlatform Library/GlobalPlatform Library ${gplib}/gppcscconnectionplugin-${pkgver}.tar.gz")
options=('!libtool')
md5sums=('616ca9d75620e4652b726b06ae5f44c9')

build() {
  cd $srcdir/$pkgname-$pkgver
  ./configure --prefix=/usr --sysconfdir=/etc

  msg "Patching Makefiles"
  sed -i 's/gnu-ldl/gnu/g' Makefile src/Makefile

  make || return 1
}

package() {
  cd $srcdir/$pkgname-$pkgver
  make DESTDIR=$pkgdir install || return 1
}