blob: ce0fae6b53c5cdc46aa85840e8eb7c4ebdd98771 (
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 21193 2010-07-15 00:17:24Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
pkgname=soil
pkgver=0708
pkgrel=1
pkgdesc="tiny C lib primarily for loading textures into OpenGL"
arch=('i686' 'x86_64')
url="http://www.lonesock.net/soil.html"
license=('public')
makedepends=('unzip')
depends=('freeglut')
#options=('!libtool')
source=("http://www.lonesock.net/files/soil.zip")
md5sums=('4736ac4f34fd9a41fa0197eac23bbc24')
build() {
cd "${srcdir}/Simple OpenGL Image Library/projects/makefile"
[[ -d obj ]] && rm -r obj/
mkdir obj/
sed "s|LOCAL = /usr/local|LOCAL = ${pkgdir}/usr|g" -i makefile || return 1
sed "s|CXXFLAGS = |CXXFLAGS = -fPIC |g" -i makefile || return 1
mkdir -p ${pkgdir}/usr/{lib,include}
make || return 1
make install || return 1
chmod 644 ${pkgdir}/usr/lib/libSOIL.a
}
|