blob: d3f9a61534516e520c0408382e2de2d0aeacf18e (
plain)
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
46
47
48
|
# Maintainer: HurricanePootis <hurricanepootis@protonmail.com>
pkgname=lib32-sdl12-compat-git
_pkgbase=sdl12-compat
pkgver=1.2.68.r17.g75ac6c6
pkgrel=1
pkgdesc="An SDL-1.2 compatibility layer that uses SDL 2.0 behind the scenes."
arch=("x86_64" "i686")
url="https://github.com/libsdl-org/sdl12-compat"
license=('Zlib')
depends=('lib32-sdl2' 'lib32-glibc' 'lib32-glu')
makedepends=('cmake' 'git' 'ninja')
conflicts=('lib32-sdl')
provides=('lib32-sdl=1.12.15')
conflicts=('lib32-sdl' 'lib32-sdl12-compat')
provides=('lib32-sdl=1:1.2.15+r406+gf1caf909-1' 'lib32-sdl12-compat')
source=("git+https://github.com/libsdl-org/sdl12-compat.git")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgbase"
git describe --long --tags | sed 's/^release-//;s/\([^-]*-g\)/r\1/;s/-/./g' | sed 's/^prerelease.//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir"
cmake -S $_pkgbase -B build \
-DCMAKE_BUILD_TYPE=None \
-G Ninja \
-DCMAKE_C_FLAGS="$CFLAGS -m32" \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_INSTALL_LIBDIR="lib32" \
-DSDL12TESTS=0 \
-DSDL12DEVEL=1
cmake --build build
}
package() {
cd "$srcdir"
DESTDIR="$pkgdir/" cmake --install build
cd "$pkgdir/usr/"
rm -rf share/ bin/ include/
install -Dm655 "$srcdir/$_pkgbase/LICENSE.txt" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE.txt"
}
|