summaryrefslogtreecommitdiff
path: root/user/sdl2/APKBUILD
blob: 0ba480012da7e8a9b95691d3ec9168d15e786b91 (plain) (blame)
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
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=sdl2
pkgver=2.0.10
pkgrel=0
pkgdesc="Low level audio, keyboard, mouse, joystick and graphics library"
url="https://www.libsdl.org/"
arch="all"
license="zlib"
depends=""
makedepends="alsa-lib-dev libx11-dev libxcursor-dev libxext-dev libxi-dev
	libxkbcommon-dev libxrandr-dev libxrender-dev libusb-dev mesa-dev
	libxscrnsaver-dev dbus-dev eudev-dev pulseaudio-dev"
subpackages="$pkgname-dev"
source="https://www.libsdl.org/release/SDL2-$pkgver.tar.gz"
builddir="$srcdir/SDL2-$pkgver"

build() {
	# pmOS needs DirectFB for battery animations and LUKS unlocking
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-alsa \
		--enable-clock_gettime \
		--disable-arts \
		--disable-esd \
		--disable-nas \
		--disable-rpath \
		--with-x \
	make
}

check() {
	[ "$($builddir/sdl2-config --version)" = "$pkgver" ]
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="f49b869362699b3282f6e82920e59c7fac581bcbf955f18a81cc126293c08093a90df7fcb39517cc8bc32708d2213fe645a42b655d6d811c1386efebb3d3c798  SDL2-2.0.10.tar.gz"