summaryrefslogtreecommitdiff
path: root/community/libwww/PKGBUILD
blob: e9095de15da0de69f0b3e8399d992e1db00383f8 (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
29
30
31
32
33
# $Id: PKGBUILD 101040 2013-11-15 12:42:59Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Buharev Vasilij <buharev.v.p@gmail.com>

pkgname=libwww
pkgver=5.4.0
pkgrel=6
pkgdesc="A general-purpose client side WEB API"
arch=('i686' 'x86_64')
url="http://www.w3.org/Library/"
license=('W3C')
depends=('openssl')
makedepends=('gcc pkgconfig perl zlib openssl')
source=(http://www.w3.org/Library/Distribution/w3c-$pkgname-$pkgver.tgz)
md5sums=('c3734ca6caa405707e134cc8c6d7e422')

prepare() {
  cd "$srcdir/w3c-$pkgname-$pkgver"
  sed -i 's|\${CC-cc}|${CC-cc} -O2 |g' ./configure
}

build() {
  cd "$srcdir/w3c-$pkgname-$pkgver"
  unset LDFLAGS
  [ -f Makefile ] || ./configure --prefix=/usr \
    --with-md5 --with-zlib --with-expat --with-regex --with-ssl
  make
}

package() {
  cd "$srcdir/w3c-$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install
}