blob: 34a64adf28cf5842bf96e371bc4d10452d996e32 (
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
|
# Maintainer: Jakub Kądziołka <kuba@kadziolka.net>
# Maintainer: basxto <archlinux basxto de>
# Maintainer: ISSOtm <arch@eldred.fr>
# Contributor: kleines Filmröllchen <kleines@filmroellchen.eu>
pkgname=sameboy-git
pkgdesc="An accuracy-focused Game Boy/Game Boy Color emulator"
pkgver=1.0.1.r4.1cf84a5
pkgrel=1
arch=(x86_64)
url="https://github.com/LIJI32/SameBoy"
license=(MIT)
provides=(sameboy)
conflicts=(sameboy)
depends=(sdl2 hicolor-icon-theme openal gdk-pixbuf2 libglvnd)
# Upstream suggests using clang, but gcc is supported on Linux: https://github.com/LIJI32/SameBoy/issues/164#issuecomment-486464194
makedepends=(rgbds make git coreutils)
source=(git+https://github.com/LIJI32/SameBoy)
sha1sums=('SKIP')
pkgver() {
cd SameBoy
git describe --long | sed 's/\([^-]*-\)g/r\1/; s/-/./g; s/v//'
}
build() {
MAKEFLAGS="${MAKEFLAGS} -j$(nproc)" make -C SameBoy sdl xdg-thumbnailer FREEDESKTOP=true CONF=release PREFIX=/usr
}
package() {
make -C SameBoy install FREEDESKTOP=true CONF=release PREFIX=/usr DESTDIR="$pkgdir"
# Installing MIME type icons is nice in principle, but would conflict with other packages
# attempting the same. That's a shame!
rm -rv "$pkgdir"/usr/share/icons/hicolor/*/mimetypes
# Move license to the correct path for arch.
install -d "$pkgdir/usr/share/licenses/$pkgname/"
mv "$pkgdir/usr/share/sameboy/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/"
}
|