blob: 5370c715f69ed693515aa7a31a1b339449babfcd (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: dorphell <dorphell@archlinux.org>
pkgname=sdl
pkgver=1.2.15+r506+gf5f2d382
pkgrel=1
epoch=1
pkgdesc="A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard"
arch=('x86_64')
url="https://www.libsdl.org"
license=('LGPL')
depends=('glibc' 'libxext' 'libxrender' 'libx11')
makedepends=('alsa-lib' 'mesa' 'libpulse' 'glu' 'git')
optdepends=('alsa-lib: ALSA audio driver'
'libpulse: PulseAudio audio driver')
options=('staticlibs')
_commit=f5f2d3825637169fc8f3ebc6ef0d076916e27e82 # main
source=("git+https://github.com/libsdl-org/SDL-1.2#commit=$_commit"
0001-SDL-1.2.15-no-default-backing-store.patch
0002-x11-Bypass-SetGammaRamp-when-changing-gamma.patch
0003-sdl-1.2.14-fix-mouse-clicking.patch
0004-sdl-1.2.14-disable-mmx.patch)
sha256sums=('436049ae65eb18abbd379cd1a8e3d32029db3c28bb55cb685ef44cee8721a8d7'
'658a3467f285201431a274339bd5b35a15c6b12156d8b19b21d66546ab8512bc'
'786c55a1e2c3bd5d68d5649d6f4325ec22109ea3453e73d8d173966798a36538'
'c2be5af8e1fe36d3771972de4575d30b48372bb94f53433a3ae8cff030d1724d'
'62275b1b2f8e79d5f12126a79994733dcd13d62954391fcdf93c76f35fde55a0')
validpgpkeys=('1528635D8053A57F77D1E08630A59377A7763BE6') # Sam Lantinga <slouken@libsdl.org>
pkgver() {
cd SDL-1.2
git describe --tags | sed 's/^release-//;s/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd SDL-1.2
git apply -3 ../0001-SDL-1.2.15-no-default-backing-store.patch
# https://bugs.freedesktop.org/show_bug.cgi?id=27222
git apply -3 ../0002-x11-Bypass-SetGammaRamp-when-changing-gamma.patch
git apply -3 ../0003-sdl-1.2.14-fix-mouse-clicking.patch
git apply -3 ../0004-sdl-1.2.14-disable-mmx.patch
./autogen.sh
}
build() {
cd SDL-1.2
CFLAGS+=' -ffat-lto-objects'
./configure --prefix=/usr --disable-nasm --enable-alsa \
--with-x --disable-rpath --disable-static
make
}
package() {
cd SDL-1.2
make DESTDIR="$pkgdir" install
}
|