diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-09-16 13:58:59 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-09-16 14:00:57 -0300 |
commit | 1228edd50c4f54f852ef50ddeb8132831d7928ba (patch) | |
tree | 37ac5902ec44f68ff9bff7a69b0c8ca5d45f20ca /pcr | |
parent | 69bf885698cbe9fa21c50b4bb52b69854befb024 (diff) | |
download | abslibre-1228edd50c4f54f852ef50ddeb8132831d7928ba.tar.gz abslibre-1228edd50c4f54f852ef50ddeb8132831d7928ba.tar.bz2 abslibre-1228edd50c4f54f852ef50ddeb8132831d7928ba.zip |
pcr/reicast*-git: fix build target and add reicast-c++ x86_64 package only
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/reicast-git/PKGBUILD | 16 | ||||
-rw-r--r-- | pcr/reicast-multilib-git/PKGBUILD | 2 |
2 files changed, 16 insertions, 2 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 } diff --git a/pcr/reicast-multilib-git/PKGBUILD b/pcr/reicast-multilib-git/PKGBUILD index e2663fdb3..7693804e4 100644 --- a/pcr/reicast-multilib-git/PKGBUILD +++ b/pcr/reicast-multilib-git/PKGBUILD @@ -44,7 +44,7 @@ prepare () { build () { mkdir -vm 0755 "$srcdir"/pkgbuild-dir - linux32 make -C reicast/shell/linux PREFIX=/usr DESTDIR="$srcdir"/pkgbuild-dir install + make -C reicast/shell/linux platform=x86 PREFIX=/usr DESTDIR="$srcdir"/pkgbuild-dir install } package () { |