# $Id: PKGBUILD 66600 2012-02-26 14:00:34Z lfleischer $ # Maintainer: Mateusz Herych # Contributor: Bj?indeijer pkgname=enet pkgver=1.3.3 pkgrel=2 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') options=(!libtool) source=("http://enet.bespin.org/download/${pkgname}-${pkgver}.tar.gz") md5sums=('4b0b69377fd4511e82e5f0921a942e59') 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 -m755 libenet.so.2 "${pkgdir}/usr/lib" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }