mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 19:37:13 +08:00
40 lines
1.3 KiB
Bash
40 lines
1.3 KiB
Bash
#
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=sdl
|
|
pkgver=1.2.14
|
|
pkgrel=2
|
|
pkgdesc="A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.libsdl.org"
|
|
license=('LGPL')
|
|
depends=('glibc' 'libxext' 'libxrender' 'libx11')
|
|
makedepends=('alsa-lib' 'esound' 'mesa')
|
|
options=('!libtool')
|
|
source=(http://www.libsdl.org/release/SDL-${pkgver}.tar.gz
|
|
sdl-1.2.14-joystick-crash.diff
|
|
sdl-1.2.14-fix-mouse-clicking.patch
|
|
sdl-1.2.14-fix-disappearing-cursor.patch)
|
|
md5sums=('e52086d1b508fa0b76c52ee30b55bec4'
|
|
'9d8890b3817736a5d365f7497f096634'
|
|
'd79137e6bdadf21ff2f716590e9709ac'
|
|
'a6cf3e71b653aa97d0d8ae6c0a789807')
|
|
|
|
build() {
|
|
cd ${srcdir}/SDL-${pkgver}
|
|
patch -Np1 -i $srcdir/sdl-1.2.14-joystick-crash.diff
|
|
patch -Np1 -i $srcdir/sdl-1.2.14-fix-mouse-clicking.patch
|
|
patch -Np1 -i $srcdir/sdl-1.2.14-fix-disappearing-cursor.patch
|
|
./configure --prefix=/usr --disable-nasm --enable-alsa --enable-esd \
|
|
--with-x --disable-rpath
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/SDL-${pkgver}
|
|
make DESTDIR=${pkgdir} install
|
|
}
|