mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-23 17:33:34 +08:00
added lib32-sdl_image
This commit is contained in:
parent
e5febcba35
commit
7fbb062249
36
lib32-sdl_image/PKGBUILD
Normal file
36
lib32-sdl_image/PKGBUILD
Normal file
@ -0,0 +1,36 @@
|
||||
# Lib32 Packages for Chakra, part of chakra-project.org
|
||||
#
|
||||
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
||||
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
||||
|
||||
_pkgbasename=sdl_image
|
||||
pkgname=lib32-$_pkgbasename
|
||||
pkgver=1.2.10
|
||||
pkgrel=1
|
||||
pkgdesc="A simple library to load images of various formats as SDL surfaces (32-bit)"
|
||||
arch=('x86_64')
|
||||
url="http://www.libsdl.org/projects/SDL_image/"
|
||||
license=('LGPL')
|
||||
depends=('lib32-sdl' 'lib32-libpng' 'lib32-libjpeg' 'lib32-libtiff' 'lib32-zlib' "$_pkgbasename")
|
||||
makedepends=('gcc-multilib')
|
||||
options=('!libtool')
|
||||
source=(http://www.libsdl.org/projects/SDL_image/release/SDL_image-${pkgver}.tar.gz)
|
||||
md5sums=('6c06584b31559e2b59f2b982d0d1f628')
|
||||
|
||||
build() {
|
||||
export CC='gcc -m32'
|
||||
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
|
||||
|
||||
cd ${srcdir}/SDL_image-${pkgver}
|
||||
|
||||
./configure --prefix=/usr --libdir=/usr/lib32
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${srcdir}/SDL_image-${pkgver}
|
||||
|
||||
make DESTDIR=$pkgdir install
|
||||
rm -rf $pkgdir/usr/include
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user