summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6997087a2b72bd5bb64dffd7989c73c37698d525 (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
# Maintainer: Alexandre Bouvier <contact@amb.tf>
# Contributor: Oliver Jaksch <arch-aur@com-in.de>
_pkgname=libretro-stella
pkgname=$_pkgname-git
pkgver=6.7.r308.g2c661184c
pkgrel=1
epoch=1
pkgdesc="Atari 2600 VCS core"
arch=('aarch64' 'armv7h' 'i486' 'i686' 'pentium4' 'x86_64')
url="https://stella-emu.github.io/"
license=('GPL2')
groups=('libretro')
depends=('glibc' 'libretro-core-info')
makedepends=('git')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=('stella-emu::git+https://github.com/stella-emu/stella.git')
b2sums=('SKIP')

pkgver() {
	cd stella-emu
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
	sed -i 's/-O[0123s]//;s/-Ofast//' stella-emu/src/os/libretro/Makefile
}

build() {
	make -C stella-emu/src/os/libretro LTO=
}

package() {
	# shellcheck disable=SC2154
	install -D -t "$pkgdir"/usr/lib/libretro stella-emu/src/os/libretro/stella_libretro.so
}