blob: 2a9788f9db7149319ea03c799820ac195eeb7f98 (
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
64
65
66
67
68
|
# Maintainer: Frederic Bezies <fredbezies at gmail dot com>
# Contributor: Fabio Lolix <fabio.loli at disroot.org>
# Thanks to Fabio Lolix for the patch.
pkgname=applewin-git
pkgver=1.30.14.1.r1538.g1254c3ce
pkgrel=1
pkgdesc="AppleWin Linux port by Audetto - GIT version"
arch=('x86_64')
url="https://github.com/audetto/AppleWin.git"
license=('GPL2')
depends=('boost-libs' 'minizip' 'libslirp' 'sdl2_image' 'qt5-gamepad' 'qt5-multimedia' 'libyaml')
makedepends=('git' 'cmake' 'boost')
provide=(applewin)
conflicts=(applewin)
install=applewin.install
options=(!debug !lto)
source=("${pkgname%-git}::git+https://github.com/audetto/AppleWin.git"
"git+https://github.com/Dax89/QHexView.git"
"git+https://github.com/ocornut/imgui.git"
"git+https://github.com/ocornut/imgui_club.git"
"git+https://github.com/AirGuanZ/imgui-filebrowser.git"
applewin-sdl2.desktop
applewin-qt.desktop
apple-logo.svg)
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'3c85c5f62d94b5e50431d0eabd5b59f0416a3cbfc38cae169ed5deeca76744b7'
'a1ff883091cc0d80ae9830353f3ef3a9b451833814c39100b351a7a92677960f'
'e3bbf57d2ad105c6211b0853fbb88f1c20d874d0a34b6ae263e2cf8c74e1568d')
pkgver() {
cd "${srcdir}/${pkgname%-git}"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "${srcdir}/${pkgname%-git}"
git submodule init
git submodule set-url source/frontends/qt/QHexView "${srcdir}/QHexView"
git submodule set-url source/frontends/sdl/imgui/imgui "${srcdir}/imgui"
git submodule set-url source/frontends/sdl/imgui/imgui_club "${srcdir}/imgui_club"
git submodule set-url source/frontends/sdl/imgui/imgui-filebrowser "${srcdir}/imgui-filebrowser"
git -c protocol.file.allow=always submodule update
mkdir build
}
build() {
cd "${srcdir}/${pkgname%-git}/build"
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
make
}
package() {
cd "${srcdir}/${pkgname%-git}/build"
make DESTDIR="${pkgdir}/" install
install -D "${srcdir}"/*.desktop -t "${pkgdir}"/usr/share/applications/
install -D "${srcdir}"/apple-logo.svg -t "${pkgdir}"/usr/share/applewin/common/
}
# vim:set ts=2 sw=2 et:
|