summaryrefslogtreecommitdiff
path: root/pcr/reicast-git
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-09-16 13:58:59 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-09-22 16:15:05 -0300
commitd7e3c170499108ccf958f4a74624df2b8c25f805 (patch)
tree761b727afa75faa18837af7ebe6452ec89eb6ceb /pcr/reicast-git
parentf3f5876239ae98af61562c09425373b9a2fdfb57 (diff)
pcr/reicast*-git: fix build target and add reicast-c++ x86_64 package only
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
}