summaryrefslogtreecommitdiff
path: root/community/enet/PKGBUILD
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/enet/PKGBUILD
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/enet/PKGBUILD')
-rw-r--r--community/enet/PKGBUILD26
1 files changed, 26 insertions, 0 deletions
diff --git a/community/enet/PKGBUILD b/community/enet/PKGBUILD
new file mode 100644
index 000000000..212fa4543
--- /dev/null
+++ b/community/enet/PKGBUILD
@@ -0,0 +1,26 @@
+# $Id: PKGBUILD 42151 2011-03-14 16:17:27Z mherych $
+# Maintainer: Mateusz Herych <heniekk@gmail.com>
+# Contributor: Bj?indeijer <bjorn@lindeijer.nl>
+pkgname=enet
+pkgver=1.3.1
+pkgrel=1
+pkgdesc='A relatively thin, simple and robust network communication layer on top of UDP.'
+arch=('i686' 'x86_64')
+url='http://enet.bespin.org/'
+license=('custom')
+source=("http://enet.bespin.org/download/${pkgname}-${pkgver}.tar.gz")
+md5sums=('d31adbd50924fe39aab3c23308f58959')
+
+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
+}