# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: dorphell <dorphell@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=sdl_net
pkgver=1.2.8
pkgrel=6.1
pkgdesc="A small sample cross-platform networking library"
url="https://www.libsdl.org/projects/SDL_net/"
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
license=(custom)
depends=(sdl)
source=(https://www.libsdl.org/projects/SDL_net/release/SDL_net-$pkgver.tar.gz)
sha256sums=('5f4a7a8bb884f793c278ac3f3713be41980c5eedccecff0260411347714facb4')

build() {
  cd SDL_net-$pkgver
  ./configure --prefix=/usr --disable-static --build=${CHOST}
  make
}

package() {
  cd SDL_net-$pkgver
  make DESTDIR="$pkgdir" install
  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
