summaryrefslogtreecommitdiff
path: root/pcr/polarssl/PKGBUILD
blob: 9d547d1d1efa1833fcf89013c1b6f0901ffea850 (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
28
# Maintainer: Mihai Militaru <mihai militaru at xmpp dot ro>

pkgname=polarssl
pkgver=1.2.8
pkgrel=1
pkgdesc="Portable cryptographic and SSL/TLS library"
arch=('i686' 'x86_64')
url="http://www.polarssl.org/"
license=('GPL2')
source=(http://www.polarssl.org/code/releases/polarssl-"$pkgver"-gpl.tgz)
sha1sums=('a3e69d4e9302529c5006dcb7d8ecab9c99488036')
depends=('glibc')

build() {
  cd "$pkgname"-"$pkgver"

  sed -i 's^CFLAGS	+=^CFLAGS	+= -fPIC^g' library/Makefile
  sed -i 's#all: static#all: static shared#g' library/Makefile

  make
}

package() {
	cd "$pkgname"-"$pkgver"
	
	make DESTDIR="$pkgdir/usr" install
	echo "WARNING: in order to run the tests, execute in this directory, after you install the library: cd src/polarssl-$pkgver && make check"
}