From d7e3c170499108ccf958f4a74624df2b8c25f805 Mon Sep 17 00:00:00 2001 From: "coadde [Márcio Alexandre Silva Delgado]" Date: Wed, 16 Sep 2015 13:58:59 -0300 Subject: pcr/reicast*-git: fix build target and add reicast-c++ x86_64 package only --- pcr/reicast-git/PKGBUILD | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'pcr/reicast-git') 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 } -- cgit v1.2.3-54-g00ecf