Package Details: ticemu-git 2.0.r102.g203eabce-1

Git Clone URL: https://aur.archlinux.org/ticemu-git.git (read-only, click to copy)
Package Base: ticemu-git
Description: Third-party TI-84 Plus CE / TI-83 Premium CE emulator, focused on developer features
Upstream URL: https://ce-programming.github.io/CEmu/
Licenses: GPL-3.0-or-later
Conflicts: ticemu
Provides: ticemu
Submitter: Juju
Maintainer: HurricanePootis
Last Packager: HurricanePootis
Votes: 7
Popularity: 0.000000
First Submitted: 2020-02-22 04:41 (UTC)
Last Updated: 2026-01-20 20:39 (UTC)

Latest Comments

HurricanePootis commented on 2025-11-18 21:28 (UTC)

diff --git a/PKGBUILD b/PKGBUILD
index c9605a7..b927bf9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,18 +2,22 @@
 # Contributor: Nathaniel van Diepen <eeems@eeems.codes>

 pkgname=ticemu-git
-pkgver=1.3.r29.g4f8e0406
-pkgrel=2
+pkgver=2.0.r101.g7f94a92c
+pkgrel=1
 url='https://ce-programming.github.io/CEmu/'
-makedepends=('git')
-depends=('qt5-base' 'libarchive')
+makedepends=('git' 'cmake' 'ninja')
+depends=('qt6-base' 'libarchive' 'libusb' 'gcc-libs' 'glibc')
 pkgdesc='Third-party TI-84 Plus CE / TI-83 Premium CE emulator, focused on developer features'
-license=('GPL')
+license=('GPL-3.0-or-later')
 arch=('x86_64')
+conflicts=("${pkgname::-4}")
+provides=("${pkgname::-4}")
 source=("$pkgname::git+https://github.com/CE-Programming/CEmu.git"
    "git+https://github.com/CE-Programming/zdis.git"
    "git+https://github.com/adriweb/tivars_lib_cpp.git")
-md5sums=('SKIP' 'SKIP' 'SKIP')
+md5sums=('SKIP'
+         'SKIP'
+         'SKIP')
 pkgver() {
   cd "$srcdir/$pkgname"
   if git describe --tags > /dev/null 2>&1;then
@@ -23,24 +27,39 @@ pkgver() {
   fi;
 }
 prepare(){
-  cd "$srcdir/$pkgname/gui/qt"
+  cd "$srcdir/$pkgname"

   git submodule init
-  git config submodule."core/debug/zdis".git.url $srcdir/zdis
-  git config submodule."gui/qt/tivars_lib_cpp".git.url $srcdir/tivars_lib_cpp
-  git submodule update
+  git config submodule."core/debug/zdis".url $srcdir/zdis
+  git config submodule."gui/qt/tivars_lib_cpp".url $srcdir/tivars_lib_cpp
+  git -c protocol.file.allow=always submodule update
+
+  sed -i 's/FILENAME_VARIABLE deploy_script/OUTPUT_SCRIPT deploy_script/g' gui/qt/CMakeLists.txt
 }
 build() {
-  cd "$srcdir/$pkgname/gui/qt"
+  cd "$srcdir"
+
+  cmake -B build -S "$srcdir/$pkgname/gui/qt" \
+  -GNinja \
+  -DCMAKE_INSTALL_PREFIX=/usr \
+  -DCMAKE_BUILD_TYPE=None \
+  -DCMAKE_C_FLAGS="$CFLAGS -DNDEBUG" \
+  -DCMAKE_CXX_FLAGS="$CXXFLAGS -DNDEBUG" \
+  -DCMAKE_SKIP_RPATH=ON \
+  -DCMAKE_SKIP_INSTALL_RPATH=ON \
+  -DSHORT_VERSION="v${pkgver}" \
+  -DIS_OFFICIAL_RELEASE_VERSION=ON
+
+  cmake --build build

-  qmake -r CEmu.pro "PREFIX=$pkgdir/usr"
-  make
 }
 package() {
+  cd "$srcdir"
   install -Dm644 "$srcdir/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-  install -Dm644 "$srcdir/$pkgname/gui/qt/resources/linux/cemu.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
-  install -Dm644 "$srcdir/$pkgname/gui/qt/resources/icons/linux/cemu-512x512.png" "$pkgdir/usr/share/pixmaps/cemu.png"
+  install -Dm644 "$srcdir/$pkgname/gui/qt/resources/linux/cemu.desktop" "$pkgdir/usr/share/applications/CEmu.desktop"
+  install -Dm644 "$srcdir/$pkgname/gui/qt/resources/icons/linux/cemu-512x512.png" "$pkgdir/usr/share/pixmaps/CEmu.png"
+  install -Dm644 "$srcdir/$pkgname/gui/qt/resources/linux/cemu.xml" "$pkgdir/usr/share/mime/packages/cemu.xml"
+  install -Dm755 "$srcdir/build/CEmu" "$pkgdir/usr/bin/CEmu"

-  cd "$srcdir/$pkgname/gui/qt"
-  make install
+  sed -i 's/Icon=cemu/Icon=CEmu/g' "$pkgdir/usr/share/applications/CEmu.desktop"
 }
  1. Moves to CMake
  2. Updates depends() and makedepends() to be actually right
  3. Add conflicts() and provides() since this is a -git package
  4. Patches the CMakeLists.txt to build correctly
  5. Install .desktop, icon, and modify .desktop to properly align all file names with resourceClass property of window. This is to get the icon to show properly on wayland.

Zedjones commented on 2019-10-15 14:40 (UTC) (edited on 2019-10-15 14:40 (UTC) by Zedjones)

Had to make some modifications since the project switched over to using submodules at some point I assume

# Maintainer: Julien Savard
pkgname=cemu-git
pkgver=.r1251.6f52694
pkgrel=1
pkgdesc="An open-source third-party TI-84 Plus CE / TI-83 Premium CE calculator emulator"
arch=("i686" "x86_64")
url="https://github.com/MateoConLechuga/CEmu"
license=('GPL')
groups=()
depends=('qt5-base' 'qt5-declarative')
makedepends=('git') # 'bzr', 'git', 'mercurial' or 'subversion'
provides=("cemu")
conflicts=("cemu")
replaces=()
backup=()
options=()
install=
source=('cemu::git+https://github.com/MateoConLechuga/CEmu' 'cemu.desktop')
noextract=()
md5sums=('SKIP'
'3b347a05abc3d1a3a047a68988c659b7')

pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "%s.r%s.%s" "$(cat CEmu.pro | grep CEMU_VERSION | grep -o '[^=]*$')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
cd "$srcdir/${pkgname%-git}"
git submodule init
git submodule update
cd "$srcdir/${pkgname%-git}/gui/qt"
qmake-qt5 -r CEmu.pro
make
}

package() {
cd "$srcdir/${pkgname%-git}/gui/qt"
install -D -m755 "${srcdir}/${pkgname%-git}/gui/qt/CEmu" "$pkgdir/usr/bin/cemu"
install -D -m644 "${srcdir}/${pkgname%-git}/README.md" "$pkgdir/usr/share/${pkgname%-git}/README"
install -D -m644 "${srcdir}/${pkgname%-git}/LICENSE" "$pkgdir/usr/share/licenses/${pkgname%-git}/LICENSE"
install -D -m644 "${srcdir}/${pkgname%-git}/gui/qt/resources/icons/icon.png" "$pkgdir/usr/share/pixmaps/${pkgname%-git}.png"
install -D -m644 "${srcdir}/${pkgname%-git}.desktop" "$pkgdir/usr/share/applications/${pkgname%-git}.desktop"
}

Juju commented on 2017-09-20 16:30 (UTC)

It does help, thanks. I'm going to update the package when I'll have a minute, then maybe even it give up to one of the devs if they use Arch.

rod2ik commented on 2017-09-20 11:51 (UTC) (edited on 2017-09-20 12:00 (UTC) by rod2ik)

This is PRECISELY how I modified the PKGBUILD, and it DID work for me. Hope this helps :) # Maintainer: Julien Savard pkgname=cemu-git pkgver=.r1251.6f52694 pkgrel=1 pkgdesc="An open-source third-party TI-84 Plus CE / TI-83 Premium CE calculator emulator" arch=("i686" "x86_64") url="https://github.com/MateoConLechuga/CEmu" license=('GPL') groups=() depends=('qt5-base' 'qt5-declarative') makedepends=('git') # 'bzr', 'git', 'mercurial' or 'subversion' provides=("cemu") conflicts=("cemu") replaces=() backup=() options=() install= source=('cemu::git+https://github.com/MateoConLechuga/CEmu' 'cemu.desktop') noextract=() md5sums=('SKIP' '3b347a05abc3d1a3a047a68988c659b7') pkgver() { cd "$srcdir/${pkgname%-git}" printf "%s.r%s.%s" "$(cat CEmu.pro | grep CEMU_VERSION | grep -o '[^=]*$')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { cd "$srcdir/${pkgname%-git}/gui/qt" qmake-qt5 -r CEmu.pro make } package() { cd "$srcdir/${pkgname%-git}/gui/qt" install -D -m755 "${srcdir}/${pkgname%-git}/gui/qt/CEmu" "$pkgdir/usr/bin/cemu" install -D -m644 "${srcdir}/${pkgname%-git}/README.md" "$pkgdir/usr/share/${pkgname%-git}/README" install -D -m644 "${srcdir}/${pkgname%-git}/LICENSE" "$pkgdir/usr/share/licenses/${pkgname%-git}/LICENSE" install -D -m644 "${srcdir}/${pkgname%-git}/gui/qt/resources/icons/icon.png" "$pkgdir/usr/share/pixmaps/${pkgname%-git}.png" install -D -m644 "${srcdir}/${pkgname%-git}.desktop" "$pkgdir/usr/share/applications/${pkgname%-git}.desktop" }

veganvelociraptr commented on 2017-06-05 06:21 (UTC)

The PKGBUILD is broken, all references to CEmu.pro and its resources need to have its parent directories changed to ./gui/qt/

esclapion commented on 2016-03-29 12:38 (UTC)

Cannot find file: CEmu.pro