summaryrefslogtreecommitdiff
path: root/extra/sdl2_net/PKGBUILD
blob: 6deb7d889a46e78ddcc0b88c6fe576253068932c (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
29
30
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>

pkgname=sdl2_net
pkgver=249
pkgrel=1
pkgdesc="A small sample cross-platform networking library (Version 2)"
arch=('i686' 'x86_64')
url="http://www.libsdl.org"
license=('MIT')
depends=(sdl2)
makedepends=(mercurial)
options=(!libtool)
source=("sdl2_net::hg+http://hg.libsdl.org/SDL_net#revision=$pkgver")
md5sums=('SKIP')

build() {
  cd "${srcdir}/sdl2_net/"

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

package() {
  cd "${srcdir}/sdl2_net/"

  make DESTDIR="${pkgdir}/" install

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