[arch-commits] Commit in (4 files)
Jelle van der Waa
jelle at gemini.archlinux.org
Fri Mar 18 20:02:00 UTC 2022
Date: Friday, March 18, 2022 @ 20:02:00
Author: jelle
Revision: 1159023
initial commit, replacement of sdl
Added:
sdl12-compat/
sdl12-compat/repos/
sdl12-compat/trunk/
sdl12-compat/trunk/PKGBUILD
----------+
PKGBUILD | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
Added: sdl12-compat/trunk/PKGBUILD
===================================================================
--- sdl12-compat/trunk/PKGBUILD (rev 0)
+++ sdl12-compat/trunk/PKGBUILD 2022-03-18 20:02:00 UTC (rev 1159023)
@@ -0,0 +1,28 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+pkgname=sdl12-compat
+pkgver=1.2.52
+pkgrel=1
+pkgdesc="Binary and source compatible API for programs written against SDL 1.2, but it uses SDL 2.0 behind the scenes."
+url="https://github.com/libsdl-org/sdl12-compat"
+depends=('sdl2' 'glu')
+makedepends=('cmake')
+arch=('x86_64')
+conflicts=('sdl')
+provides=('sdl=1.12.15')
+license=('MIT')
+source=("https://github.com/libsdl-org/sdl12-compat/archive/refs/tags/release-1.2.52.tar.gz")
+sha256sums=('5bd7942703575554670a8767ae030f7921a0ac3c5e2fd173a537b7c7a8599014')
+
+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"
+}
More information about the arch-commits
mailing list