desktop/enet/PKGBUILD

41 lines
952 B
Bash

#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=enet
pkgver=1.2.3
pkgrel=2
pkgdesc='A relatively thin, simple and robust network communication layer on top of UDP. (Old Version)'
arch=('i686' 'x86_64')
url='http://enet.bespin.org/'
license=('MIT')
replaces=('enet-old')
changelog=ChangeLog
source=("http://$pkgname.bespin.org/download/$pkgname-$pkgver.tar.gz")
md5sums=('30be76b63db9bcebb89e142ddbada20b')
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
# License:
install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}