summaryrefslogtreecommitdiff
path: root/extra/sdl_image/PKGBUILD
blob: 1c5aa97c8b73e7815959fdbd6c1ac9d161dcef15 (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
# $Id: PKGBUILD 148924 2012-02-05 11:56:07Z ibiru $
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=sdl_image
pkgver=1.2.12
pkgrel=2.1
pkgdesc="A simple library to load images of various formats as SDL surfaces"
arch=('i686' 'x86_64' 'mips64el')
license=('custom')
depends=('sdl>=1.2.13' 'libpng' 'libjpeg>=7' 'libtiff' 'zlib')
options=('!libtool')
url="http://www.libsdl.org/projects/SDL_image/"
source=(http://www.libsdl.org/projects/SDL_image/release/SDL_image-$pkgver.tar.gz)
md5sums=('a0f9098ebe5400f0bdc9b62e60797ecb')

build() {
  cd "$srcdir/SDL_image-$pkgver"
  ./configure --prefix=/usr --disable-static
  make
}

package() {
  cd "$srcdir/SDL_image-$pkgver"
  make DESTDIR="$pkgdir" install

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