lib32/lib32-sdl_net/PKGBUILD

31 lines
917 B
Bash

# Lib32 Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
_pkgbasename=sdl_net
pkgname=lib32-$_pkgbasename
pkgver=1.2.7
pkgrel=3
pkgdesc="A small sample cross-platform networking library (32 bit)"
arch=('x86_64')
url="http://www.libsdl.org/projects/SDL_net/"
license=('LGPL')
depends=('lib32-sdl' $_pkgbasename)
makedepends=('gcc-multilib')
options=('!libtool')
source=(http://www.libsdl.org/projects/SDL_net/release/SDL_net-${pkgver}.tar.gz)
md5sums=('6bd4662d1423810f3140d4da21b6d912')
build() {
cd ${srcdir}/SDL_net-${pkgver}
./configure --libdir=/usr/lib32 CC='gcc -m32' CXX='g++ -m32'
make
}
package() {
cd ${srcdir}/SDL_net-${pkgver}
make DESTDIR=${pkgdir} install
rm -rf ${pkgdir}/usr/local
install -Dm644 COPYING ${pkgdir}/usr/share/licenses/$pkgname/COPYING
}