summaryrefslogtreecommitdiff
path: root/gnome-unstable/libsoup/PKGBUILD
blob: 406a4287e363b771af45c48ca0c5ddfb70406387 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# $Id: PKGBUILD 167007 2012-09-24 18:00:04Z jgc $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgbase=libsoup
pkgname=('libsoup' 'libsoup-gnome')
pkgver=2.40.0
pkgrel=1
arch=('i686' 'x86_64')
license=('LGPL')
makedepends=('glib2' 'libxml2' 'sqlite' 'libgnome-keyring' 'intltool' 'gobject-introspection' 'glib-networking' 'python2')
url="http://www.gnome.org"
source=(http://ftp.gnome.org/pub/gnome/sources/$pkgbase/${pkgver%.*}/$pkgbase-$pkgver.tar.xz)
options=('!libtool' '!emptydirs')
sha256sums=('ef65eb6d48e9525ad0fb82f964d3001e86921330317b51082d3dd0afc41d2ea9')

build() {
  cd "$pkgbase-$pkgver"
  sed -i -e 's/env python/python2/' libsoup/tld-parser.py
  ./configure --prefix=/usr --sysconfdir=/etc \
      --localstatedir=/var --disable-static
  make
}

package_libsoup() {
  pkgdesc="GNOME HTTP Library - base library"
  depends=('glib2' 'libxml2' 'glib-networking')

  cd "$pkgbase-$pkgver"
  make DESTDIR="$pkgdir" install

  rm -f "$pkgdir"/usr/lib/libsoup-gnome-2.4.*
  rm -f "$pkgdir/usr/lib/pkgconfig/libsoup-gnome-2.4.pc"
  rm -rf "$pkgdir/usr/include/libsoup-gnome-2.4"
  rm -f "$pkgdir/usr/lib/girepository-1.0/SoupGNOME-2.4.typelib"
}

package_libsoup-gnome() {
  pkgdesc="GNOME HTTP Library - GNOME libraries"
  depends=("libsoup=$pkgver" 'libgnome-keyring' 'sqlite')

  cd "$pkgbase-$pkgver"
  make DESTDIR="$pkgdir" install

  rm -f "$pkgdir"/usr/lib/libsoup-2.4.*
  rm -f "$pkgdir/usr/lib/pkgconfig/libsoup-2.4.pc"
  rm -rf "$pkgdir/usr/include/libsoup-2.4"
  rm -rf "$pkgdir/usr/share"
  rm -f "$pkgdir/usr/lib/girepository-1.0/Soup-2.4.typelib"
}