archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / lib32-sdl_net / trunk / PKGBUILD
bloba2bba909beadfcdde7f3487f834d98630cf8a60d
1 # Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
2 # Contributor: Maxime Gauduin <alucryd@archlinux.org>
3 # Contributor: carstene1ns <arch.carsten@teibes.de>
4 # Contributor: Jameson Pugh <imntreal@gmail.com>
5 # Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
7 pkgname=lib32-sdl_net
8 pkgver=1.2.8
9 pkgrel=3
10 pkgdesc='Small cross-platform networking library'
11 url='https://www.libsdl.org/projects/SDL_net/'
12 arch=(x86_64)
13 license=(zlib)
14 depends=(lib32-sdl)
15 makedepends=(gcc-multilib)
16 source=("https://www.libsdl.org/projects/SDL_net/release/SDL_net-$pkgver.tar.gz")
17 b2sums=('656fb9c86949bc962656edc7b950e64eee9b9b1ce1b257e6c4974c2d9be99714128c5556d3a3b7ea92cc6d294846af7a51a1925d17418afc8409e44a7b71099a')
19 build() {
20   cd SDL_net-$pkgver
21   export CC='gcc -m32'
22   export CXX='g++ -m32'
23   export PKG_CONFIG_PATH=/usr/lib32/pkgconfig
24   ./configure --disable-static --libdir=/usr/lib32 --prefix=/usr
25   make
28 package() {
29   cd SDL_net-$pkgver
30   make DESTDIR="$pkgdir" install
31   rm -frv "$pkgdir/usr/include"
32   install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"