summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot2015-06-09 00:33:25 +0100
committerEmmanuel Gil Peyrot2015-06-09 00:33:25 +0100
commit228af8f6da80753ec0310f9eaacf7d9bb4e344ae (patch)
treef178e2b329b4858b200dc2585b5e1fa0dd5d4553
downloadaur-228af8f6da80753ec0310f9eaacf7d9bb4e344ae.tar.gz
Initial commit.
-rw-r--r--.SRCINFO33
-rw-r--r--PKGBUILD55
-rw-r--r--citra.install12
3 files changed, 100 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e83c379207a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,33 @@
+pkgbase = citra-git
+ pkgdesc = An experimental open-source Nintendo 3DS emulator/debugger
+ pkgver = r2266.3d44dc4
+ pkgrel = 1
+ url = https://github.com/citra-emu/citra/
+ install = citra.install
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ makedepends = git
+ makedepends = cmake
+ makedepends = glfw
+ makedepends = qt5-base
+ makedepends = shared-mime-info
+ makedepends = desktop-file-utils
+ source = citra::git+https://github.com/citra-emu/citra
+ source = git+https://github.com/citra-emu/ext-boost
+ source = git+https://github.com/svn2github/inih
+ source = git+https://github.com/neobrain/nihstro
+ md5sums = SKIP
+ md5sums = SKIP
+ md5sums = SKIP
+ md5sums = SKIP
+
+pkgname = citra-git
+ depends = glfw
+
+pkgname = citra-qt-git
+ depends = qt5-base
+ depends = libxkbcommon-x11
+ depends = shared-mime-info
+ depends = desktop-file-utils
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3cba36a4d1a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,55 @@
+# Maintainer: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
+# Contributor: ceri
+
+_pkgbase='citra'
+pkgbase="$_pkgbase-git"
+pkgname=("$_pkgbase-git" "$_pkgbase-qt-git")
+pkgver=r2266.3d44dc4
+pkgrel=1
+pkgdesc="An experimental open-source Nintendo 3DS emulator/debugger"
+arch=('i686' 'x86_64')
+url="https://github.com/citra-emu/citra/"
+license=('GPL2')
+makedepends=('git' 'cmake' 'glfw' 'qt5-base' 'shared-mime-info' 'desktop-file-utils')
+source=("$_pkgbase::git+https://github.com/citra-emu/citra"
+ 'git+https://github.com/citra-emu/ext-boost'
+ 'git+https://github.com/svn2github/inih'
+ 'git+https://github.com/neobrain/nihstro')
+md5sums=('SKIP' 'SKIP' 'SKIP' 'SKIP')
+install='citra.install'
+
+pkgver() {
+ cd "$srcdir/$_pkgbase"
+ echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$srcdir/$_pkgbase"
+ mkdir -p build
+
+ git submodule init
+ git config submodule.boost.url "$srcdir/ext-boost"
+ git config submodule.inih.url "$srcdir/inih"
+ git config submodule.nihstro.url "$srcdir/nihstro"
+ git submodule update
+}
+
+build() {
+ cd "$srcdir/$_pkgbase/build"
+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
+ make
+}
+
+package_citra-git() {
+ depends=('glfw')
+
+ install -Dm755 "$srcdir/$_pkgbase/build/src/citra/citra" "$pkgdir/usr/bin/$_pkgbase"
+}
+
+package_citra-qt-git() {
+ depends=('qt5-base' 'libxkbcommon-x11' 'shared-mime-info' 'desktop-file-utils')
+
+ cd "$srcdir/$_pkgbase/build"
+ make DESTDIR="$pkgdir/" install
+ install -Dm755 src/citra_qt/citra-qt "$pkgdir/usr/bin/$_pkgbase-qt"
+}
diff --git a/citra.install b/citra.install
new file mode 100644
index 00000000000..a1f7636734d
--- /dev/null
+++ b/citra.install
@@ -0,0 +1,12 @@
+post_install() {
+ [ -x usr/bin/update-desktop-database ] && update-desktop-database -q
+ [ -x usr/bin/update-mime-database ] && update-mime-database usr/share/mime
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}