summaryrefslogtreecommitdiff
path: root/community/enet/PKGBUILD
blob: b2c08e8b2be981989372c5e234aa874b78ff6f3d (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 55996 2011-09-28 12:57:06Z jelle $
# Maintainer: Mateusz Herych <heniekk@gmail.com>
# Contributor: Bj?indeijer <bjorn@lindeijer.nl>
pkgname=enet
pkgver=1.3.3
pkgrel=1
pkgdesc='A relatively thin, simple and robust network communication layer on top of UDP.'
arch=('i686' 'x86_64' 'mips64el')
url='http://enet.bespin.org/'
license=('custom')
depends=('glibc')
source=("http://enet.bespin.org/download/${pkgname}-${pkgver}.tar.gz")

build() {
  cd ${pkgname}-${pkgver}
  CFLAGS="-fPIC" ./configure --prefix=/usr
  make
  gcc -Wl,-soname,libenet.so.2 -shared -o libenet.so.2 *.o
}

package() {
  cd ${pkgname}-${pkgver}
  make prefix=${pkgdir}/usr install
  install -m 755 libenet.so.2 ${pkgdir}/usr/lib
  install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
md5sums=('4b0b69377fd4511e82e5f0921a942e59')