summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/reicast-git/PKGBUILD55
1 files changed, 48 insertions, 7 deletions
diff --git a/pcr/reicast-git/PKGBUILD b/pcr/reicast-git/PKGBUILD
index de3027b55..0bc424210 100644
--- a/pcr/reicast-git/PKGBUILD
+++ b/pcr/reicast-git/PKGBUILD
@@ -5,8 +5,8 @@
_pkgname=reicast
pkgname=${_pkgname}-git
pkgver=r1703.a5b7011
-pkgrel=2
-pkgdesc="A multiplatform Sega Dreamcast emulator"
+pkgrel=3
+pkgdesc="A multiplatform Sega Dreamcast/NAOMI emulator"
arch=('i686' 'x86_64' 'armv7h')
url="http://${_pkgname}.com/"
license=('GPL2')
@@ -89,6 +89,12 @@ build() {
# Disabled, due is unsupported code with gnu++11 or gnu++98
# mkdir -vm 0755 "$srcdir"/pkgbuild-cpp-dir
# make -C ${_pkgname}-${pkgver}/shell/linux platform=lincpp PREFIX=/usr DESTDIR="$srcdir"/pkgbuild-cpp-dir install
+ # Enable Naomi support
+ sed -i 's|USE_JOYSTICK[ ][:][=][ ]1|USE_JOYSTICK := 1\nNAOMI := 1|' ${_pkgname}-${pkgver}/shell/linux/Makefile
+ make -C ${_pkgname}-${pkgver}/shell/linux platform=x64 PREFIX=/usr DESTDIR="$srcdir"/naomi-dir install
+ # Disabled, due is unsupported code with gnu++11 or gnu++98
+ # mkdir -vm 0755 "$srcdir"/naomi-cpp-dir
+ # make -C ${_pkgname}-${pkgver}/shell/linux platform=lincpp PREFIX=/usr DESTDIR="$srcdir"/pkgbuild-cpp-dir install
elif [ $CARCH == i686 ]; then
make -C ${_pkgname}-${pkgver}/shell/linux platform=x86 PREFIX=/usr DESTDIR="$srcdir"/pkgbuild-dir install
# Enable Purupuru Pack (rumble support)
@@ -97,6 +103,9 @@ build() {
# Enable Microphone support
sed -i 's|PurupuruPack[,]i[,]1|Microphone,i,1|' ${_pkgname}-${pkgver}/core/hw/maple/maple_cfg.cpp
make -C ${_pkgname}-${pkgver}/shell/linux platform=x86 PREFIX=/usr DESTDIR="$srcdir"/microphone-dir install
+ # Enable Naomi support
+ sed -i 's|USE_JOYSTICK[ ][:][=][ ]1|USE_JOYSTICK := 1\nNAOMI := 1|' ${_pkgname}-${pkgver}/shell/linux/Makefile
+ make -C ${_pkgname}-${pkgver}/shell/linux platform=x32 PREFIX=/usr DESTDIR="$srcdir"/naomi-dir install
elif [ $CARCH == armv7h ]; then
make -C ${_pkgname}-${pkgver}/shell/linux platform=armv7h PREFIX=/usr DESTDIR="$srcdir"/pkgbuild-dir install
# Enable Purupuru Pack (rumble support)
@@ -105,20 +114,52 @@ build() {
# Enable Microphone support
sed -i 's|PurupuruPack[,]i[,]1|Microphone,i,1|' ${_pkgname}-${pkgver}/core/hw/maple/maple_cfg.cpp
make -C ${_pkgname}-${pkgver}/shell/linux platform=armv7h PREFIX=/usr DESTDIR="$srcdir"/microphone-dir install
+ # Enable Naomi support
+ sed -i 's|USE_JOYSTICK[ ][:][=][ ]1|USE_JOYSTICK := 1\nNAOMI := 1|' ${_pkgname}-${pkgver}/shell/linux/Makefile
+ make -C ${_pkgname}-${pkgver}/shell/linux platform=armv7h PREFIX=/usr DESTDIR="$srcdir"/naomi-dir install
fi
}
package() {
- cp -va "$srcdir"/pkgbuild-dir/* "$pkgdir"
- cp -va "$srcdir"/purupuru-dir/usr/bin/${_pkgname} "$pkgdir"/usr/bin/${_pkgname}-purupuru
- cp -va "$srcdir"/microphone-dir/usr/bin/${_pkgname} "$pkgdir"/usr/bin/${_pkgname}-microphone
+ cp -va "$srcdir"/pkgbuild-dir/* "$pkgdir"
+ cp -va "$srcdir"/purupuru-dir/usr/bin/${_pkgname} "$pkgdir"/usr/bin/${_pkgname}-purupuru
+ cp -va "$srcdir"/microphone-dir/usr/bin/${_pkgname} "$pkgdir"/usr/bin/${_pkgname}-microphone
+ cp -va "$srcdir"/naomi-dir/usr/bin/${_pkgname}-naomi "$pkgdir"/usr/bin/${_pkgname}-naomi
+ cp -va "$srcdir"/purupuru-dir/usr/share/applications/${_pkgname}.desktop "$pkgdir"/usr/share/applications/${_pkgname}-purupuru.desktop
+ cp -va "$srcdir"/microphone-dir/usr/share/applications/${_pkgname}.desktop "$pkgdir"/usr/share/applications/${_pkgname}-microphone.desktop
+ cp -va "$srcdir"/naomi-dir/usr/share/applications/${_pkgname}.desktop "$pkgdir"/usr/share/applications/${_pkgname}-naomi.desktop
+ cp -va "$srcdir"/purupuru-dir/usr/share/man/man1/${_pkgname}.1 "$pkgdir"/usr/share/man/man1/${_pkgname}-purupuru.1
+ cp -va "$srcdir"/microphone-dir/usr/share/man/man1/${_pkgname}.1 "$pkgdir"/usr/share/man/man1/${_pkgname}-microphone.1
+ cp -va "$srcdir"/naomi-dir/usr/share/man/man1/${_pkgname}.1 "$pkgdir"/usr/share/man/man1/${_pkgname}-naomi.1
+ sed -i '\|Name| s|Reicast|Reicast with PurupuruPack support|
+ \|Exec| s|reicast|reicast-purupuru|
+ ' "$pkgdir"/usr/share/applications/${_pkgname}-purupuru.desktop
+ sed -i '\|Name| s|Reicast|Reicast with Microphone support|
+ \|Exec| s|reicast|reicast-microphone|
+ ' "$pkgdir"/usr/share/applications/${_pkgname}-microphone.desktop
+ sed -i '\|Name| s|Reicast|Reicast NAOMI|
+ \|Exec| s|reicast|reicast-naomi|
+ s|Dreamcast|Naomi|
+ s|dreamcast|naomi|
+ ' "$pkgdir"/usr/share/applications/${_pkgname}-naomi.desktop \
+ "$pkgdir"/usr/share/man/man1/${_pkgname}-naomi.1
if [ -d "$srcdir"/pkgbuild-cpp-dir ]; then
cp -va "$srcdir"/pkgbuild-cpp-dir/usr/bin/${_pkgname} "$pkgdir"/usr/bin/${_pkgname}-c++
cp -va "$srcdir"/pkgbuild-cpp-dir/usr/share/applications/${_pkgname}.desktop "$pkgdir"/usr/share/applications/${_pkgname}-c++.desktop
- cp -va "$srcdir"/pkgbuild-cpp-dir/usr/share/man/man1/${_pkgname} "$pkgdir"/usr/share/man/man1/${_pkgname}-c++
- sed -i '\|Name| s|reicast|reicast-c++|
+ cp -va "$srcdir"/pkgbuild-cpp-dir/usr/share/man/man1/${_pkgname}.1 "$pkgdir"/usr/share/man/man1/${_pkgname}-c++.1
+ sed -i '\|Name| s|Reicast|Reicast C++|
\|Exec| s|reicast|reicast-c++|
' "$pkgdir"/usr/share/applications/${_pkgname}-c++.desktop
+ elif [ -d "$srcdir"/naomi-cpp-dir ]; then
+ cp -va "$srcdir"/naomi-cpp-dir/usr/bin/${_pkgname} "$pkgdir"/usr/bin/${_pkgname}-naomi-c++
+ cp -va "$srcdir"/naomi-cpp-dir/usr/share/applications/${_pkgname}.desktop "$pkgdir"/usr/share/applications/${_pkgname}-naomi-c++.desktop
+ cp -va "$srcdir"/naomi-cpp-dir/usr/share/man/man1/${_pkgname}.1 "$pkgdir"/usr/share/man/man1/${_pkgname}-naomi-c++.1
+ sed -i '\|Name| s|Reicast|Reicast NAOMI C++|
+ \|Exec| s|reicast|reicast-naomi-c++|
+ s|Dreamcast|Naomi|
+ s|dreamcast|naomi|
+ ' "$pkgdir"/usr/share/applications/${_pkgname}-naomi-c++.desktop \
+ "$pkgdir"/usr/share/man/man1/${_pkgname}-naomi-c++.1
fi
install -Dm 644 ${_pkgname}-${pkgver}/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}