summaryrefslogtreecommitdiff
path: root/extra/gnet/PKGBUILD
blob: 264534d7df867c6876116e63bdc59d52979f1189 (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
# $Id: PKGBUILD 122722 2011-05-06 08:12:47Z eric $
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=gnet
pkgver=2.0.8
pkgrel=2.1
pkgdesc="A simple network library"
arch=('i686' 'x86_64' 'mips64el')
url="http://live.gnome.org/GNetLibrary"
license=('LGPL')
depends=('glib2')
options=('!libtool')
source=(http://ftp.gnome.org/pub/GNOME/sources/gnet/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2)
md5sums=('93327d2fca333d7e54ba2cf54e071165')
sha1sums=('74a33dd25cc594b874e3a5171795efd99e567387')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  find examples -name Makefile.in | xargs sed -ri 's/^(LIBS .*)/\1 -lglib-2.0/'
  ./configure --prefix=/usr
  make
}

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