blob: 9332c2523da7e26e9dc3c5e542c0ecc5d12147e3 (
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
|
# Maintainer: Alexandre Bouvier <contact@amb.tf>
_reponame=dosbox-pure
_pkgname=libretro-$_reponame
pkgname=$_pkgname-git
pkgver=0.9.9.r5.g87bf636
pkgrel=1
epoch=1
pkgdesc="MS-DOS core"
arch=('aarch64' 'armv7h' 'i486' 'i686' 'pentium4' 'x86_64')
url="https://github.com/schellingb/dosbox-pure"
license=('GPL-2.0-or-later')
groups=('libretro')
depends=('gcc-libs' 'glibc' 'libretro-core-info')
makedepends=('git')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$_reponame::git+$url.git")
b2sums=('SKIP')
pkgver() {
cd $_reponame
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
sed -E \
-e 's/^(\s*(CFLAGS|LDFLAGS)\s*):=/\1+=/' \
-e 's/-Wno-format//' \
-e 's/-O[0123s]//;s/-Ofast//' \
-i $_reponame/Makefile
}
build() {
make -C $_reponame
}
package() {
# shellcheck disable=SC2154
install -D -t "$pkgdir"/usr/lib/libretro $_reponame/dosbox_pure_libretro.so
}
|