From 27a3b01f9a5cd93e2cefb9bafed26a6ce404a0a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Fri, 20 Sep 2013 16:17:48 -0300 Subject: PolarSSL and Hiawatha --- pcr/polarssl/PKGBUILD | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pcr/polarssl/PKGBUILD (limited to 'pcr/polarssl') diff --git a/pcr/polarssl/PKGBUILD b/pcr/polarssl/PKGBUILD new file mode 100644 index 000000000..9d547d1d1 --- /dev/null +++ b/pcr/polarssl/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Mihai Militaru + +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" +} -- cgit v1.2.3-2-g168b