summaryrefslogtreecommitdiff
path: root/extra/gupnp/PKGBUILD
blob: 5c88107546b4e58f1c3f514e3a9361db1bc860ff (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
# $Id: PKGBUILD 139611 2011-10-03 19:05:21Z heftig $
# Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
# Contributor: György Balló <ballogy@freestart.hu>

pkgname=gupnp
pkgver=0.18.0
pkgrel=1
pkgdesc="An object-oriented UPNP framework"
arch=('i686' 'x86_64')
url="http://gupnp.org/"
license=('LGPL')
depends=('gssdp')
makedepends=('gobject-introspection' 'gtk-doc')
optdepends=('python2: gupnp-binding-tool')
options=('!libtool')
source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz)
sha256sums=('82f4758b26ef0531cf6301f526fe705f06c329eaef403bb30925128fcbb6a71a')

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

  sed -i '1s|^#!.*python$|&2|' tools/gupnp-binding-tool

  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
              --disable-static --with-context-manager=linux
  make
}

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