summaryrefslogtreecommitdiff
path: root/extra/sdl2_net/PKGBUILD
blob: 0fb72721cf27e85745c1d81a5a4afb9adb68c2db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# $Id: PKGBUILD 198416 2013-10-30 14:44:37Z allan $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>

pkgname=sdl2_net
epoch=1
pkgver=2.0.0
pkgrel=1
pkgdesc="A small sample cross-platform networking library (Version 2)"
arch=('i686' 'x86_64')
url="http://www.libsdl.org/projects/SDL_net"
license=('MIT')
depends=(sdl2)
source=("$url/release/SDL2_net-${pkgver}.tar.gz")
md5sums=('83bcd0e67796b81b35b08a014c677200')

build() {
  cd "${srcdir}/SDL2_net-${pkgver}/"

  ./configure --disable-static --prefix=/usr
  make
}

package() {
  cd "${srcdir}/SDL2_net-${pkgver}/"

  make DESTDIR="${pkgdir}" install
  install -Dm644 COPYING.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}