summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8c01c263f1caf21c53640e563967eadac68028c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Maintainer: Victor3D <webmaster@victor3d.com.br>
pkgname=executor
pkgver=2
pkgrel=1
epoch=
pkgdesc="Old-school Macintosh Emulator"
arch=('x86_64')
url="http://wiki.victor3d.com.br"
license=('GPL')
groups=()
depends=("qt5-base" "boost")
makedepends=("cmake" "sdl2" "boost" "git")
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("https://github.com/victor3dptz/executor-packaging/raw/master/arch/executor.tar.gz")
noextract=()
md5sums=("868697896b0c51c66d31440f3c59a3fc")
validpgpkeys=()

prepare() {
	cd "$pkgname"
	git init
	git remote add origin https://github.com/autc04/executor.git
	git pull origin master
	git submodule init
	git submodule update
	sed -i 's/SDL_keycode.h/SDL2\/SDL_keycode.h/g' src/config/front-ends/sdl2/keycode_map.h
	sed -i 's/SDL.h/SDL2\/SDL.h/g' src/config/front-ends/sdl2/sdl2.cpp
	sed -i 's/SDL.h/SDL2\/SDL.h/g' src/config/front-ends/sdl2/keycode_map.cpp
}

build() {
	cd "$pkgname"
	mkdir build
	cd build
	cmake ..
	make
}

check() {
	cd "$pkgname"
}

package() {
	cd "$pkgname"
	mkdir -p "$pkgdir/usr/share/man"
	cp -Rp "usr/share/man/" "$pkgdir/usr/share"
	mkdir -p "$pkgdir/usr/share/applications"
	cp -Rp "usr/share/applications/" "$pkgdir/usr/share/"
	mkdir -p "$pkgdir/usr/share/doc/executor"
	cp -Rp "usr/share/doc/executor/" "$pkgdir/usr/share/doc/"
	mkdir -p "$pkgdir/usr/share/executor"
	cp -Rp "usr/share/executor/" "$pkgdir/usr/share/"
	mkdir -p "$pkgdir/usr/bin"
	cp -Rp "build/executor" "$pkgdir/usr/bin/"
}