Initial commit

This commit is contained in:
Markus Kitsinger (SwooshyCueb) 2017-01-11 08:52:18 -06:00
commit 76139d73b2
2 changed files with 131 additions and 0 deletions

37
.SRCINFO Normal file
View File

@ -0,0 +1,37 @@
# Generated by mksrcinfo v8
# Wed Jan 11 14:51:49 UTC 2017
pkgbase = desmume-git
pkgdesc = Nintendo DS emulator
pkgver = 0.9.11.r583.07a68db
pkgrel = 1
url = http://desmume.org/
arch = i686
arch = x86_64
license = GPL
makedepends = autoconf
makedepends = automake
makedepends = pkg-config
makedepends = git
makedepends = lua
depends = agg
depends = gtkglext
depends = libglade
depends = libpcap
depends = libgl
depends = openal
depends = sdl
depends = soundtouch
depends = lua51
provides = desmume
conflicts = desmume
conflicts = desmume-sourceforge
conflicts = desmume-svn
conflicts = desmume-jit-svn
replaces = desmume-sourceforge
replaces = desmume-svn
replaces = desmume-jit-svn
source = git+https://github.com/TASVideos/desmume.git
sha512sums = SKIP
pkgname = desmume-git

94
PKGBUILD Normal file
View File

@ -0,0 +1,94 @@
#! /bin/bash
# Maintainer: Markus Kitsinger (SwooshyCueb) <root@swooshalicio.us>
_pkgname=desmume
pkgname=${_pkgname}-git
pkgdesc='Nintendo DS emulator'
url='http://desmume.org/'
arch=('i686' 'x86_64')
license=('GPL')
# The developers do not seem to make consistent use of tags
# I've manually specified the commit where the branch of the latest release (as
# of this writing) split from master, and we use this to get the rev number.
_last_rtm_ver=0.9.11
_last_rtm_commit=ccbf85ed42e4350af415d56b1465e83614c85ef8
pkgver="${_last_rtm_ver}.r583.07a68db"
pkgrel=1
depends=('agg'
'gtkglext'
'libglade'
'libpcap'
'libgl'
'openal'
'sdl'
'soundtouch'
'lua51')
makedepends=('autoconf'
'automake'
'pkg-config'
'git'
#'clang'
'lua')
provides=('desmume')
replaces=('desmume-sourceforge'
'desmume-svn'
'desmume-jit-svn')
conflicts=("${provides[@]}" "${replaces[@]}")
source=('git+https://github.com/TASVideos/desmume.git')
sha512sums=('SKIP')
_builddir="${_pkgname}/src/frontend/posix"
pkgver() {
cd "${srcdir}/${_pkgname}"
local revnum="$(git rev-list --count ${_last_rtm_commit}..HEAD)"
local shorthash="$(git rev-parse --short HEAD)"
printf "%s.r%s.%s" "${_last_rtm_ver}" "${revnum}" "${shorthash}"
}
prepare(){
cd "${srcdir}/${_pkgname}/${_builddir}"
# lua5.1 package is named lua51 on Arch
# we could probably just make it compile against the current lua
sed -i 's/lua5.1/lua51/' configure.ac
# Make clang happy
#sed -e 's/^\([[:space:]]\+\) \(line_profile_aa& profile\)/\1 const \2/' /usr/include/agg2/agg_renderer_outline_aa.h > ../modules/osd/agg/agg_renderer_outline_aa.h
./autogen.sh
# Using clang to workaround FS#41476
# Not sure if we need to do this, since it seems the current codebase
# doesn't quite work anyway.
#CC=clang \
#CXX=clang++ \
CFLAGS="-O3 -march=native" \
CXXFLAGS="-O3 -march=native" \
./configure \
--prefix=/usr \
--enable-osmesa \
--enable-glx \
--enable-hud \
--enable-openal \
--enable-glade \
--enable-wifi
}
build() {
cd "${srcdir}/${_pkgname}/${_builddir}"
make -j6
}
package() {
cd "${srcdir}/${_pkgname}/${_builddir}"
make DESTDIR="${pkgdir}" install
}