mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-02-03 13:17:15 +08:00
39 lines
1.0 KiB
Bash
39 lines
1.0 KiB
Bash
# maintainer: Giuseppe Calà <jiveaxe@gmail.com>
|
|
|
|
_pkgbasename=sdl2_image
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=2.0.1
|
|
pkgrel=1
|
|
pkgdesc="SDL2 image libraries (Version 2, 32-bit)"
|
|
arch=('x86_64')
|
|
url="http://www.libsdl.org"
|
|
license=('MIT')
|
|
depends=('lib32-sdl2' 'lib32-libpng' 'lib32-libtiff' 'lib32-libjpeg' 'lib32-libwebp' $_pkgbasename=$pkgver)
|
|
makedepends=('cmake' 'gcc-multilib')
|
|
source=("http://www.libsdl.org/projects/SDL_image/release/SDL2_image-${pkgver}.tar.gz")
|
|
sha256sums=('3a3eafbceea5125c04be585373bfd8b3a18f259bd7eae3efc4e6d8e60e0d7f64')
|
|
|
|
build() {
|
|
cd "${srcdir}/SDL2_image-${pkgver}/"
|
|
|
|
export CC="gcc -m32"
|
|
export CXX="g++ -m32"
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
./configure --disable-static \
|
|
--prefix=/usr \
|
|
--libdir=/usr/lib32
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/SDL2_image-${pkgver}/"
|
|
make DESTDIR="${pkgdir}/" install
|
|
rm -rf "${pkgdir}"/usr/{include,share,bin}
|
|
|
|
# link license
|
|
install -d "$pkgdir"/usr/share/licenses
|
|
ln -s ${pkgname#*-} "$pkgdir"/usr/share/licenses/$pkgname
|
|
}
|
|
|