experimental changes
This commit is contained in:
parent
8447faa4b3
commit
3497cae854
6
.SRCINFO
6
.SRCINFO
|
@ -1,8 +1,6 @@
|
||||||
# Generated by mksrcinfo v8
|
|
||||||
# Wed Jan 11 23:35:43 UTC 2017
|
|
||||||
pkgbase = desmume-git
|
pkgbase = desmume-git
|
||||||
pkgdesc = Nintendo DS emulator
|
pkgdesc = Nintendo DS emulator
|
||||||
pkgver = 0.9.11.r583.07a68db
|
pkgver = 0.9.11.r800.e29e825d
|
||||||
pkgrel = 2
|
pkgrel = 2
|
||||||
url = http://desmume.org/
|
url = http://desmume.org/
|
||||||
arch = i686
|
arch = i686
|
||||||
|
@ -15,11 +13,11 @@ pkgbase = desmume-git
|
||||||
makedepends = lua
|
makedepends = lua
|
||||||
depends = gtkglext
|
depends = gtkglext
|
||||||
depends = libglade
|
depends = libglade
|
||||||
|
depends = lua51
|
||||||
depends = libgl
|
depends = libgl
|
||||||
depends = openal
|
depends = openal
|
||||||
depends = sdl
|
depends = sdl
|
||||||
depends = soundtouch
|
depends = soundtouch
|
||||||
depends = lua51
|
|
||||||
provides = desmume
|
provides = desmume
|
||||||
conflicts = desmume
|
conflicts = desmume
|
||||||
conflicts = desmume-sourceforge
|
conflicts = desmume-sourceforge
|
||||||
|
|
60
PKGBUILD
60
PKGBUILD
|
@ -1,80 +1,64 @@
|
||||||
#! /bin/bash
|
|
||||||
# Maintainer: Markus Kitsinger (SwooshyCueb) <root@swooshalicio.us>
|
|
||||||
|
|
||||||
_pkgname=desmume
|
_pkgname=desmume
|
||||||
pkgname=${_pkgname}-git
|
pkgname=${_pkgname}-git
|
||||||
pkgdesc='Nintendo DS emulator'
|
pkgdesc='Nintendo DS emulator'
|
||||||
url='http://desmume.org/'
|
url='http://desmume.org/'
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
|
pkgver=0.9.11.r800.e29e825d
|
||||||
# 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=2
|
pkgrel=2
|
||||||
|
|
||||||
depends=('gtkglext'
|
depends=('gtkglext'
|
||||||
'libglade'
|
'libglade'
|
||||||
|
'lua51'
|
||||||
'libgl'
|
'libgl'
|
||||||
'openal'
|
'openal'
|
||||||
'sdl'
|
'sdl'
|
||||||
'soundtouch'
|
'soundtouch')
|
||||||
'lua51')
|
|
||||||
makedepends=('autoconf'
|
makedepends=('autoconf'
|
||||||
'automake'
|
'automake'
|
||||||
'pkg-config'
|
'pkg-config'
|
||||||
'git'
|
'git'
|
||||||
'lua')
|
'lua')
|
||||||
|
|
||||||
provides=('desmume')
|
provides=('desmume')
|
||||||
replaces=('desmume-sourceforge'
|
replaces=('desmume-sourceforge'
|
||||||
'desmume-svn'
|
'desmume-svn'
|
||||||
'desmume-jit-svn')
|
'desmume-jit-svn')
|
||||||
conflicts=("${provides[@]}" "${replaces[@]}")
|
conflicts=("${provides[@]}" "${replaces[@]}")
|
||||||
|
|
||||||
source=('git+https://github.com/TASVideos/desmume.git')
|
source=('git+https://github.com/TASVideos/desmume.git')
|
||||||
sha512sums=('SKIP')
|
sha512sums=('SKIP')
|
||||||
|
|
||||||
_builddir="${_pkgname}/src/frontend/posix"
|
_builddir="${_pkgname}/src/frontend/posix"
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd "${srcdir}/${_pkgname}"
|
cd "${srcdir}/${_pkgname}"
|
||||||
|
git describe --long | sed 's/v//;s/-/./g'
|
||||||
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(){
|
prepare(){
|
||||||
cd "${srcdir}/${_pkgname}/${_builddir}"
|
cd "${srcdir}/${_pkgname}/${_builddir}"
|
||||||
|
|
||||||
# lua5.1 package is named lua51 on Arch
|
# lua5.1 package is named lua51 on Arch
|
||||||
# we could probably just make it compile against the current lua
|
# we could probably just make it compile against the current lua
|
||||||
sed -i 's/lua5.1/lua51/' configure.ac
|
sed -i 's/lua5.1/lua51/' configure.ac
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${srcdir}/${_pkgname}/${_builddir}"
|
cd "${srcdir}/${_pkgname}/${_builddir}"
|
||||||
|
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
|
|
||||||
# Hud causes segfault in gtk version. Wifi doesn't really work.
|
# Hud causes segfault in gtk version. Wifi doesn't really work.
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--enable-osmesa \
|
--enable-osmesa \
|
||||||
--enable-glx \
|
--enable-glx \
|
||||||
--enable-openal \
|
--enable-hud \
|
||||||
--enable-glade
|
--enable-openal \
|
||||||
|
--enable-glade
|
||||||
|
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "${srcdir}/${_pkgname}/${_builddir}"
|
cd "${srcdir}/${_pkgname}/${_builddir}"
|
||||||
|
|
||||||
make DESTDIR="${pkgdir}" install
|
make DESTDIR="${pkgdir}" install
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user