diff options
author | root <root@rshg054.dnsready.net> | 2013-08-22 03:03:22 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-22 03:03:22 -0700 |
commit | e9509842445d4a99493d1b643ffdafdca62263ae (patch) | |
tree | f74663365c8818ea465f6afee4e67d75bc642f04 /community/higan-gtk | |
parent | 62b00d5bf76ef2c670dbeefe2051629d96ab7660 (diff) |
Thu Aug 22 02:58:39 PDT 2013
Diffstat (limited to 'community/higan-gtk')
-rwxr-xr-x | community/higan-gtk/PKGBUILD | 59 | ||||
-rwxr-xr-x | community/higan-gtk/higan.desktop | 8 | ||||
-rwxr-xr-x | community/higan-gtk/purify.desktop | 8 |
3 files changed, 30 insertions, 45 deletions
diff --git a/community/higan-gtk/PKGBUILD b/community/higan-gtk/PKGBUILD index 5967ecc4f..53dc19714 100755 --- a/community/higan-gtk/PKGBUILD +++ b/community/higan-gtk/PKGBUILD @@ -1,31 +1,30 @@ -# $Id: PKGBUILD 95926 2013-08-18 22:26:48Z alucryd $ +# $Id: PKGBUILD 96210 2013-08-21 19:09:14Z alucryd $ # Maintainer: Maxime Gauduin <alucryd@gmail.com> pkgname=higan-gtk pkgver=093 -pkgrel=1 +pkgrel=2 pkgdesc="Nintendo multi-system emulator - GTK version" arch=('i686' 'x86_64') url="http://code.google.com/p/higan/" license=('GPL3') depends=('libao' 'libpulse' 'libxv' 'openal' 'sdl' 'xdialog') -makedepends=('mesa') +makedepends=('gendesk' 'mesa') optdepends=('beat: Delta patcher') conflicts=('higan-qt') source=("http://byuu.org/higan/release/higan_v${pkgver}-source.tar.xz" "http://higan.googlecode.com/files/purify_v03-source.tar.xz" - 'higan' - 'higan.desktop' - 'purify.desktop') -sha1sums=('a1a117159a9c2c6b10a239b870479f520e45408d' - '2aa16f492c879d2cc1d4ffa28f4729a5ed5bb1c3' - '931baedc3bbdd343d2decda72c13b7d0efdcba3c' - '55f4de0a65d6428840d013f9b003d88158c131c7' - '093643998a2fb676d795c316e35d49cf6293ce86') + 'higan') +sha256sums=('6ad526ab7ac16a5b814f84235fbcd48946310af8645c42980b0063e3270ec538' + '2020f0b5a744f08c24085a15a6c2ec1d7c4424bba6727f244e513b95c4247e38' + 'c799232a0f67c4b7f40fc6ad05325a6c04e86d78e40f361d02f168a16d11d048') _profiles="accuracy balanced performance" prepare() { + gendesk -n --pkgname "higan" --pkgdesc "${pkgdesc}" --name='higan' --exec='higan %u' + gendesk -n --pkgname "purify" --pkgdesc "ROM Purifier - GTK version" --name='purify' --exec='purify' + cd higan_v${pkgver}-source sed -i "s/flags += -I. -O3 -fomit-frame-pointer/flags += -I. -fomit-frame-pointer -std=gnu++11/ @@ -33,46 +32,48 @@ prepare() { } build() { -# Compile libananke - cd "${srcdir}"/higan_v${pkgver}-source/ananke - make compiler=g++ platform=x phoenix=gtk flags="$CXXFLAGS -I.. -fomit-frame-pointer -std=gnu++11" - -# Compile higan cd "${srcdir}"/higan_v${pkgver}-source + +# libananke + make compiler=g++ platform=x phoenix=gtk flags="$CXXFLAGS -I.. -fomit-frame-pointer -std=gnu++11" -C ananke + +# higan for _profile in ${_profiles}; do make compiler=g++ platform=x target=ethos phoenix=gtk profile=${_profile} - mv out/higan out/higan-${_profile} + mv out/higan{,-${_profile}} make clean done -# Compile purify +# purify cd "${srcdir}"/purify_v03-source/purify make compiler=g++ platform=x phoenix=gtk flags="$CXXFLAGS -I. -fomit-frame-pointer -std=gnu++11" link='-s -lX11 -ldl -Wl,-export-dynamic' } package() { -# Install common files cd "${srcdir}"/higan_v${pkgver}-source + +# Common files install -dm 755 "${pkgdir}"/usr/{bin,lib,share/{applications,pixmaps,higan/Video\ Shaders}} - install -m 755 ../higan "${pkgdir}"/usr/bin/higan - install -m 644 ../higan.desktop "${pkgdir}"/usr/share/applications/higan.desktop + install -m 755 {..,"${pkgdir}"/usr/bin}/higan + install -m 644 {..,"${pkgdir}"/usr/share/applications}/higan.desktop install -m 644 data/higan512.png "${pkgdir}"/usr/share/pixmaps/higan.png cp -dr --no-preserve=ownership profile/* data/cheats.bml "${pkgdir}"/usr/share/higan/ cp -dr --no-preserve=ownership shaders/*.shader "${pkgdir}"/usr/share/higan/Video\ Shaders/ -# Install libananke +# libananke install -m 644 ananke/libananke.so "${pkgdir}"/usr/lib/libananke.so.1 - ln -s /usr/lib/libananke.so.1 "${pkgdir}"/usr/lib/libananke.so + ln -s libananke.so.1 "${pkgdir}"/usr/lib/libananke.so -# Install higan - for _profile in ${_profiles} ; do - install -m 755 out/higan-${_profile} "${pkgdir}"/usr/bin/higan-${_profile} +# higan + for _profile in ${_profiles}; do + install -m 755 {out,"${pkgdir}"/usr/bin}/higan-${_profile} done -# Install purify +# purify cd "${srcdir}"/purify_v03-source/purify - install -m 755 purify "${pkgdir}"/usr/bin/purify - install -m 644 "${srcdir}"/purify.desktop "${pkgdir}"/usr/share/applications/purify.desktop + install -m 755 {,"${pkgdir}"/usr/bin/}purify + install -m 644 {../..,"${pkgdir}"/usr/share/applications}/purify.desktop + ln -s higan.png "${pkgdir}"/usr/share/pixmaps/purify.png # Fix permissions find "${pkgdir}"/usr/share/higan/ -type d -exec chmod 755 {} + diff --git a/community/higan-gtk/higan.desktop b/community/higan-gtk/higan.desktop deleted file mode 100755 index c9cd3c14b..000000000 --- a/community/higan-gtk/higan.desktop +++ /dev/null @@ -1,8 +0,0 @@ -[Desktop Entry] -Name=higan -Comment=Nintendo multi-system emulator -Exec=higan %u -Icon=higan -Terminal=false -Type=Application -Categories=Game;Emulator; diff --git a/community/higan-gtk/purify.desktop b/community/higan-gtk/purify.desktop deleted file mode 100755 index 354dc2849..000000000 --- a/community/higan-gtk/purify.desktop +++ /dev/null @@ -1,8 +0,0 @@ -[Desktop Entry] -Name=purify -Comment=ROM purifier -Exec=/usr/bin/purify -Icon=higan -Terminal=false -Type=Application -Categories=Game;Emulator; |