Date: Sunday, September 18, 2022 @ 14:18:11
Author: jelle
Revision: 1304869
archrelease: copy trunk to community-testing-x86_64
Added:
sdl12-compat/repos/community-testing-x86_64/
sdl12-compat/repos/community-testing-x86_64/PKGBUILD
(from rev 1304868, sdl12-compat/trunk/PKGBUILD)
----------+
PKGBUILD | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
Copied: sdl12-compat/repos/community-testing-x86_64/PKGBUILD (from rev 1304868,
sdl12-compat/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2022-09-18 14:18:11 UTC (rev 1304869)
@@ -0,0 +1,29 @@
+# Maintainer: Jelle van der Waa <[email protected]>
+
+pkgname=sdl12-compat
+pkgver=1.2.56
+pkgrel=1
+pkgdesc="SDL 1.2 runtime compatibility library using SDL 2.0"
+url="https://github.com/libsdl-org/sdl12-compat"
+depends=('sdl2' 'glu')
+makedepends=('cmake')
+arch=('x86_64')
+conflicts=('sdl')
+provides=('sdl=1:1.2.15+r406+gf1caf909-1')
+replaces=('sdl<=1:1.2.15+r406+gf1caf909')
+license=('MIT')
+source=("https://github.com/libsdl-org/sdl12-compat/archive/refs/tags/release-${pkgver}.tar.gz")
+sha256sums=('f62f3e15f95aade366ee6c03f291e8825c4689390a6be681535259a877259c58')
+
+build() {
+ mkdir -p build
+ cd build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr ../sdl12-compat-release-${pkgver}
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR="${pkgdir}" install
+ install -Dm644 "${srcdir}/sdl12-compat-release-${pkgver}/LICENSE.txt"
"${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
+}