summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAaron Paden2017-02-11 12:21:19 -0600
committerAaron Paden2017-02-11 12:21:19 -0600
commit0acd89870b5aba4ac287d5de14451c0611797c6f (patch)
tree960aae85661a58b98a1b072ca574a769821b5582 /PKGBUILD
downloadaur-lib32-sdl_net.tar.gz
Initial commit.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..47701a999ba
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Aaron Paden <aaronbpaden@gmail.com>
+# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
+# Contributor: dorphell <dorphell@archlinux.org>
+# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
+pkgname=lib32-sdl_net
+pkgver=1.2.8
+pkgrel=1
+pkgdesc="A small sample cross-platform networking library"
+arch=('i686' 'x86_64')
+license=('custom')
+url="http://www.libsdl.org/projects/SDL_net/"
+depends=('lib32-sdl')
+source=(http://www.libsdl.org/projects/SDL_net/release/SDL_net-$pkgver.tar.gz)
+build() {
+ export CC='gcc -m32'
+ export CXX='g++ -m32'
+ export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
+ cd "$srcdir/SDL_net-$pkgver"
+ ./configure --prefix=/usr --disable-static --libdir='/usr/lib32'
+ make
+}
+package() {
+ cd "$srcdir/SDL_net-$pkgver"
+ make DESTDIR="$pkgdir" install
+ rm -rf "$pkgdir/usr/include"
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+sha256sums=('5f4a7a8bb884f793c278ac3f3713be41980c5eedccecff0260411347714facb4')