blob: 3dcc2616484e64f42dd52c194b93975b5608efd3 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# Maintainer: Alexandre Bouvier <contact@amb.tf>
_pkgname=libretro-chailove
pkgname=$_pkgname-git
pkgver=1.3.0.r0.gfecf7da
pkgrel=1
pkgdesc="ChaiScript core"
arch=('aarch64' 'armv7h' 'i486' 'i686' 'pentium4' 'x86_64')
url="https://github.com/libretro/libretro-chailove"
license=('MIT')
groups=('libretro')
depends=('gcc-libs' 'glibc' 'libretro-core-info')
makedepends=('chaiscript' 'cppcodec' 'git')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=(
"$_pkgname::git+$url.git"
'ChaiScript_Extras::git+https://github.com/ChaiScript/ChaiScript_Extras.git'
'libretro-common::git+https://github.com/libretro/libretro-common.git'
'libretro-deps::git+https://github.com/libretro/libretro-deps.git'
'physfs::git+https://github.com/icculus/physfs.git'
'random::git+https://github.com/effolkronium/random.git'
'sdl-libretro::git+https://github.com/libretro/sdl-libretro.git'
'SDL_tty::git+https://github.com/Grumbel/SDL_tty.git'
'Snippets::git+https://github.com/DanielGibson/Snippets.git'
'stb::git+https://github.com/nothings/stb.git'
'TinySHA1::git+https://github.com/mohaps/TinySHA1.git'
)
b2sums=(
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
)
pkgver() {
cd $_pkgname
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd $_pkgname
git config submodule.vendor/ChaiScript_Extras.url ../ChaiScript_Extras
git config submodule.vendor/libretro-common.url ../libretro-common
git config submodule.vendor/libretro-deps.url ../libretro-deps
git config submodule.vendor/physfs.url ../physfs
git config submodule.vendor/random.url ../random
git config submodule.vendor/sdl-libretro.url ../sdl-libretro
git config submodule.vendor/SDL_tty.url ../SDL_tty
git config submodule.vendor/Snippets.url ../Snippets
git config submodule.vendor/stb.url ../stb
git config submodule.vendor/TinySHA1.url ../TinySHA1
git -c protocol.file.allow=always submodule update
# remove hardcoded optimization flags
sed -i 's/-O[0123s]//;s/-Ofast//' Makefile.libretro
}
build() {
LDFLAGS+=" -Wl,-z,noexecstack"
make -C $_pkgname
}
package() {
cd $_pkgname
# shellcheck disable=SC2154
make DESTDIR="$pkgdir" install
install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname COPYING
}
|