summaryrefslogtreecommitdiff
path: root/pcr/yabause-git/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-02-13 16:05:54 -0200
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-02-13 16:05:54 -0200
commit2da241898c61d817913e9cba201bcf9b6d8b873b (patch)
tree496c1f070bdb6fc9b43505e1b9284cbf1d63b49f /pcr/yabause-git/PKGBUILD
parent5d92d3eebd1835c8c3ff028880363a1b0564bb4a (diff)
yabause-git: adding new package to [pcr] repo
Diffstat (limited to 'pcr/yabause-git/PKGBUILD')
-rw-r--r--pcr/yabause-git/PKGBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/pcr/yabause-git/PKGBUILD b/pcr/yabause-git/PKGBUILD
new file mode 100644
index 000000000..6f4d49d6c
--- /dev/null
+++ b/pcr/yabause-git/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
+pkgname=yabause-git
+pkgver=20130125
+pkgrel=1
+pkgdesc="A Sega Saturn emulator (GIT version)"
+arch=('x86_64' 'i386')
+url="http://yabause.org/"
+license=('GPL')
+conflicts=('yabause')
+provides=('yabause')
+depends=('mini18n-git' 'openal' 'sdl' 'freeglut')
+makedepends=('git')
+
+#Enable QT or GTK
+#_port=gtk
+_port=qt
+
+[ "${_port}" = "qt" ] && depends+=('qt')
+[ "${_port}" = "gtk" ] && depends+=('gtkglext')
+
+_gitroot="git://github.com/Guillaumito/yabause.git"
+_gitname="yabause"
+
+build() {
+ cd "${srcdir}"
+ msg "Connecting to GIT server...."
+
+ if [ -d "${_gitname}" ]; then
+ cd "${_gitname}" && git pull
+ msg "The local files are updated."
+ else
+ git clone --depth=1 "${_gitroot}" "${_gitname}"
+ fi
+
+ msg "GIT checkout done or server timeout"
+ msg "Starting build..."
+
+ rm -rf "${srcdir}/${_gitname}-build"
+ cp -R "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
+ cd "${srcdir}/${_gitname}-build/${_gitname}"
+
+ LDFLAGS+=",-z,noexecstack"
+ cmake . -DCMAKE_INSTALL_PREFIX=/usr -DYAB_PORTS="${_port}" -DYAB_NETWORK=ON -DYAB_OPTIMIZED_DMA=ON -DYAB_PERKEYNAME=ON
+ make
+}
+
+package() {
+ cd "${srcdir}/${_gitname}-build/${_gitname}"
+ make DESTDIR="${pkgdir}/" install
+}