blob: 230d8a1b1cf7965db748c97561bc4d45a5d2d01e (
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
69
70
|
# Maintainer: Rinus Remspoor <remspoor AT linuxmail DOT org>
pkgname=next
pkgver=1.454
pkgrel=2
pkgdesc="CGM rc Heli Flight Simulator"
arch=('i686' 'x86_64')
url="http://www.rc-aerobatics.eu/index_e.html"
license=('custom')
groups=()
backup=()
options=()
install=
depends=()
optdepends=( 'joyutils: jscal, jstest, and jsattach utilities for the Linux joystick driver')
source=( 'http://www.cgm-online.com/secure_rc-heli-simulator/cgm-rc-heli-simulator-linux-x86-64bit.zip'
'next.desktop'
'next.LICENSE')
sha256sums=( 'e26cb0d4fdcdbfbc275ceaef9e94ad151d34792a1879dddd896ed2953d184576'
'51657bc7148aeb3ee0c8b75a354fd701f510ffcfc04b6f5810eb6f4abb2d34c8'
'febb1e65a7932f2f80155078b1dd64f469433625c76cff43b239768a184729f0')
prepare() {
# rename the original directory to something sane and remove an OSX directory
mv "Linux x86+64bit" "${pkgname}"
rm -r "__MACOSX"
cd "${srcdir}/${pkgname}"
# Remove unneeded architecture/platform dependent files
msg2 "Removing unneeded files..."
find . -name '.DS_Store' -exec rm {} \;
if [ "${CARCH}" == 'i686' ]; then
rm -r ./neXt_Data/Mono/x86_64
rm -r ./neXt_Data/Plugins/x86_64
rm ./neXt.x86_64
fi
if [ "${CARCH}" == "x86_64" ]; then
rm -r ./neXt_Data/Mono/x86
rm -r ./neXt_Data/Plugins/x86
rm ./neXt.x86
fi
}
package() {
# Install files to ${pkgdir}
install -dm755 "${pkgdir}/opt/${pkgname}"
msg2 "Copying files to package directory..."
cp -dr --no-preserve=ownership "${srcdir}/${pkgname}" "${pkgdir}/opt/"
msg2 "Installing icon file..."
install -Dm644 "${srcdir}/${pkgname}/neXt_Data/Resources/UnityPlayer.png" "${pkgdir}/usr/share/icons/hicolor/128x128/apps/${pkgname}.png"
msg2 "Installing ${pkgname}.desktop file..."
install -Dm644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
msg2 "Installing LICENSE file..."
# Can't find the proper license right now, maybe contact the author of the software later.
install -Dm644 ${pkgname}.LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
msg2 "Creating symlink..."
cd "${pkgdir}/opt/${pkgname}"
if [ -f "./neXt.x86_64" ]; then ln -s "neXt.x86_64" "${pkgname}"; fi
if [ -f "./neXt.x86" ]; then ln -s "neXt.x86" "${pkgname}"; fi
}
|