summaryrefslogtreecommitdiff
path: root/pcr/reicast-git
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/reicast-git')
-rw-r--r--pcr/reicast-git/PKGBUILD16
1 files changed, 15 insertions, 1 deletions
diff --git a/pcr/reicast-git/PKGBUILD b/pcr/reicast-git/PKGBUILD
index 3dd13fb68..ced4e2fdb 100644
--- a/pcr/reicast-git/PKGBUILD
+++ b/pcr/reicast-git/PKGBUILD
@@ -44,10 +44,24 @@ prepare () {
build () {
mkdir -vm 0755 "$srcdir"/pkgbuild-dir
- make -C reicast/shell/linux PREFIX=/usr DESTDIR="$srcdir"/pkgbuild-dir install
+ if [ $CARCH == x86_64 ]; then
+ make -C reicast/shell/linux platform=x64 PREFIX=/usr DESTDIR="$srcdir"/pkgbuild-dir install
+ mkdir -vm 0755 "$srcdir"/pkgbuild-cpp-dir
+ make -C reicast/shell/linux platform=lincpp PREFIX=/usr DESTDIR="$srcdir"/pkgbuild-cpp-dir install
+ elif [ $CARCH == i686 ]; then
+ make -C reicast/shell/linux platform=x86 PREFIX=/usr DESTDIR="$srcdir"/pkgbuild-dir install
+ fi
}
package () {
cp -va "$srcdir"/pkgbuild-dir/* "$pkgdir"
+ if [ $CARCH == x86_64 ]; then
+ cp -va "$srcdir"/pkgbuild-cpp-dir/usr/bin/reicast "$pkgdir"/usr/bin/reicast-c++
+ cp -va "$srcdir"/pkgbuild-cpp-dir/usr/share/applications/reicast.desktop "$pkgdir"/usr/share/applications/reicast-c++.desktop
+ cp -va "$srcdir"/pkgbuild-cpp-dir/usr/share/man/man1/reicast "$pkgdir"/usr/share/man/man1/reicast-c++
+ sed -i '\|Name| s|reicast|reicast-c++|
+ \|Exec| s|reicast|reicast-c++|
+ ' "$pkgdir"/usr/share/applications/reicast-c++.desktop
+ fi
install -Dm 644 reicast/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}