pkgname: sdl pkgver: '2.32.10' pkgrel: '1' pkgdesc: A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard url: 'https://www.libsdl.org' arch: x86_64 depends: [] makedepends: - cmake - ninja - xorg-libxext - xorg-libxrender - xorg-libx11 - xorg-libxcursor - alsa-lib - mesa - pulseaudio - xorg-libxrandr - xorg-libxinerama - libxkbcommon - wayland source: - 'https://www.libsdl.org/release/SDL2-${pkgver}.tar.gz' sha256sums: - 5f5993c530f084535c65a6879e9b26ad441169b3e25d789d83287040a9ca5165 build: "CFLAGS+=\" -ffat-lto-objects\"\ncd SDL2-${pkgver}\nmkdir build \ncd build\n\ncmake -D CMAKE_INSTALL_PREFIX=/usr \\\ \n -D SDL_STATIC=OFF \\\n -D SDL_RPATH=OFF \\\n ..\nmake\n\n\nmake DESTDIR=${PKGDIR} install\n\n# For some\ \ reason, this isn't named correctly and we have to fix it to reflect the actual staticlib name.\nsed -i \"s/libSDL2\\.a/libSDL2main.a/g\"\ \ \"${PKGDIR}\"/usr/lib/cmake/SDL2/SDL2Targets-noconfig.cmake\n\n# install -Dm644 SDL2-${pkgver}/LICENSE.txt ${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE\n\ \n# Obsolet libs\n# rm -f ${PKGDIR}/usr/lib/libSDL2.la\n# rm -f ${PKGDIR}/usr/lib/libSDL2_test.la\n# rm -f ${PKGDIR}/usr/lib/libSDL2main.la\n\ \n# Static obsolet libs\n# rm ${PKGDIR}/usr/lib/libSDL2*.a\n" package: | true