yochananmarqos

executor-git

Oct 27th, 2020
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.13 KB | None | 0 0
  1. pkgname=executor-git
  2. pkgver=0.1.0.r203.ga7451c9f
  3. pkgrel=1
  4. pkgdesc="A modern fork of the classic Mac emulator"
  5. arch=('x86_64')
  6. url="https://github.com/autc04/executor"
  7. license=('MIT')
  8. depends=('qt5-base' 'executor-data')
  9. makedepends=('git' 'cmake' 'ruby' 'sdl' 'sdl2' 'libxext' 'waylandpp' 'python'
  10.              'boost' 'perl')
  11. optdepends=('sdl2: for SDL 2 frontend'
  12.             'sdl: for SDL 1.2 frontend'
  13.             'libxext: for X11 frontend'
  14.             'waylandpp: for Wayland frontend')
  15. provides=("${pkgname%-git}")
  16. conflicts=("${pkgname%-git}")
  17. source=('git+https://github.com/autc04/executor.git'
  18.         'git+https://github.com/autc04/PowerCore.git'
  19.         'git+https://github.com/vector-of-bool/cmrc.git'
  20.         'git+https://github.com/autc04/cxmon.git'
  21.         'git+https://github.com/LMDB/lmdb.git'
  22.         'git+https://github.com/autc04/lmdbxx.git'
  23.         'git+https://github.com/autc04/multiversal.git'
  24.         'git+https://github.com/autc04/syn68k.git'
  25.         'git+https://github.com/google/googletest.git')
  26. sha256sums=('SKIP'
  27.             'SKIP'
  28.             'SKIP'
  29.             'SKIP'
  30.             'SKIP'
  31.             'SKIP'
  32.             'SKIP'
  33.             'SKIP'
  34.             'SKIP')
  35.  
  36. pkgver() {
  37.     cd "$srcdir/${pkgname%-git}"
  38.     git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
  39. }
  40.  
  41. prepare() {
  42.     cd "$srcdir/${pkgname%-git}"
  43.     git submodule init
  44.     git config submodule.PowerCore.url $srcdir/PowerCore
  45.     git config submodule.cmrc.url $srcdir/cmrc
  46.     git config submodule.cxmon.url $srcdir/cxmon
  47.     git config submodule.lmdb.url $srcdir/lmdb
  48.     git config submodule.lmdbxx.url $srcdir/lmdbxx
  49.     git config submodule.multiversal.url $srcdir/multiversal
  50.     git config submodule.syn68k.url $srcdir/syn68k
  51.     git config submodule.tests/googletest.url $srcdir/googletest
  52.     git submodule update
  53. }
  54.  
  55. build() {
  56.     cmake -B build -S "${pkgname%-git}" \
  57.         -Wno-dev
  58.     make -C build
  59. }
  60.  
  61. package() {
  62.     cd "$srcdir/${pkgname%-git}"
  63.     install -Dm755 $srcdir/build/{${pkgname%-git},${pkgname%-git}{-sdl,-sdl2,-wayland,-x}} -t \
  64.         "$pkgdir/usr/bin"
  65.     install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/${pkgname%-git}"
  66. }
Add Comment
Please, Sign In to add comment