mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 06:24:37 +08:00
36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
#
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=sdl2_image
|
|
pkgver=2.0.0
|
|
pkgrel=2
|
|
pkgdesc="SDL2 image libraries"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.libsdl.org"
|
|
license=('MIT')
|
|
depends=('sdl2' 'libpng' 'libtiff' 'libjpeg' 'libwebp')
|
|
makedepends=('cmake')
|
|
options=(!libtool)
|
|
source=("http://www.libsdl.org/projects/SDL_image/release/SDL2_image-${pkgver}.tar.gz"
|
|
"FindSDL2_image.cmake")
|
|
sha256sums=('b29815c73b17633baca9f07113e8ac476ae66412dec0d29a5045825c27a47234'
|
|
'177afccde2a7e6c112f8d2fa75d7ad72e0e4827f307f1e4dac67f7756c0b8b19')
|
|
|
|
build() {
|
|
cd "${srcdir}/SDL2_image-${pkgver}/"
|
|
./configure --disable-static --prefix=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/SDL2_image-${pkgver}/"
|
|
make DESTDIR="${pkgdir}/" install
|
|
install -Dm644 COPYING.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
# we can remove the following when provided directly by cmake
|
|
install -Dm644 $srcdir/FindSDL2_image.cmake ${pkgdir}/usr/share/cmake-2.8/Modules/FindSDL2_image.cmake
|
|
}
|
|
|