PKGBUILDs/aur/polarssl/PKGBUILD

24 lines
720 B
Bash
Raw Normal View History

2012-05-30 22:29:53 +00:00
# Maintainer: Mihai Militaru <mihai militaru at xmpp dot ro>
pkgname=polarssl
2012-12-03 23:30:09 +00:00
pkgver=1.2.3
2012-05-30 22:29:53 +00:00
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)
2012-12-03 23:30:09 +00:00
sha1sums=('b47b3db19c4487c5930eaec23dda0dbd24851146')
2012-05-30 22:29:53 +00:00
depends=('glibc')
build() {
cd "$pkgname"-"$pkgver"
2012-12-03 23:30:09 +00:00
sed -i 's^CFLAGS +=^CFLAGS += -fPIC^g' library/Makefile
2012-05-30 22:29:53 +00:00
sed -i 's#all: static#all: static shared#g' library/Makefile
make
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-<version> && make check'
}