blob: 183ffc0ff83b2d716ac4b381f94f027c495ffd24 (
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
49
50
51
|
# Maintainer: HurricanePootis <hurricanepootis@protonmail.com>
pkgname=sdl12-compat-git
_pkgbase=sdl12-compat
pkgver=1.2.68.r9.gbb2f7ff
pkgrel=2
pkgdesc="An SDL-1.2 compatibility layer that uses SDL 2.0 behind the scenes."
arch=("x86_64")
url="https://github.com/libsdl-org/sdl12-compat"
license=('Zlib AND MIT-0')
depends=('sdl2' 'glibc' 'glu')
makedepends=('cmake' 'git')
conflicts=('sdl' 'sdl12-compat')
provides=('sdl=1:1.2.15+r406+gf1caf909-1' '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'
}
prepare(){
if test -e "$srcdir/$_pkgbase/build64"
then
:
else
mkdir "$srcdir/$_pkgbase/build64"
fi
}
build() {
cd "$srcdir/$_pkgbase/build64"
cmake ../ \
-DCMAKE_C_FLAGS="$CFLAGS" \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DSDL12TESTS=0 \
-DSDL12DEVEL=1
make
}
package() {
cd "$srcdir/$_pkgbase/build64"
make DESTDIR="$pkgdir/" install
mkdir -p "$pkgdir/usr/share/licenses/sdl12-compat"
cp "$srcdir/$_pkgbase/LICENSE.txt" "$pkgdir/usr/share/licenses/sdl12-compat/LICENSE.txt"
}
|