-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPKGBUILD
More file actions
45 lines (38 loc) · 1015 Bytes
/
Copy pathPKGBUILD
File metadata and controls
45 lines (38 loc) · 1015 Bytes
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
_pkgname=SDL
_branch=wiiu-sdl2-devel
pkgname=wiiu-sdl2-dkosmari
conflicts=('wiiu-sdl2')
provides=('wiiu-sdl2')
pkgver=2.28.5
pkgrel=3
pkgdesc="The Simple DirectMedia Layer (SDL) library, version 2."
arch=('any')
url="https://libsdl.org"
license=("LGPL")
options=(!buildflags !strip staticlibs)
makedepends=(
'wiiu-pkg-config'
'dkp-toolchain-vars'
)
depends=(
'wut'
)
source=("${_pkgname}::git+https://github.com/dkosmari/SDL.git#branch=${_branch}")
groups=('wiiu-portlibs' 'wiiu-sdl2-libs')
build() {
cd "${srcdir}/${_pkgname}"
${DEVKITPRO}/portlibs/wiiu/bin/powerpc-eabi-cmake \
-S. \
-Bbuild \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_INSTALL_PREFIX=${DEVKITPRO}/portlibs/wiiu \
-DCMAKE_C_FLAGS_RELEASE="-g -Os -DNDEBUG" \
-DCMAKE_CXX_FLAGS_RELEASE="-g -Os -DNDEBUG"
make -C build
}
package() {
cd "${srcdir}/${_pkgname}"
make -C build install DESTDIR="${pkgdir}"
}
sha256sums=('SKIP')