blob: 8f801c6481bb7b92eed8823ce627b62d7650e666 (
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
|
# Maintainer(s): remspoor <remspoor AT linuxmail DOT org>
# Jake <aur@ja-ke.tech>
# These variables should be updated with ./update_download_id.sh
_download_url='https://magentacloud.de/s/Sn4sgTmjdnrWFbC/download/cgm-rc-flight-simulator-linux-2059.zip'
# _download_[id|file] can be cleaned up later
_download_id='Sn4sgTmjdnrWFbC'
_download_file='cgm-rc-flight-simulator-linux-2059.zip'
_pkgver='2.059'
pkgname=next
pkgver=2.059
pkgrel=1
pkgdesc="CGM rc Heli Flight Simulator"
arch=('x86_64')
url="http://www.rc-aerobatics.eu/index_e.html"
license=('custom')
optdepends=( 'joyutils: jscal, jstest, and jsattach utilities for the Linux joystick driver'
'controllermap: Game controller mapping generator, to generate env. var. SDL_GAMECONTROLLERCONFIG'
'antimicro: Game controller mapping generator, to generate env. var. SDL_GAMECONTROLLERCONFIG')
install="${pkgname}.install"
source=("${pkgname}-${pkgver}.zip::${_download_url}"
"next.desktop"
"next.sh")
sha512sums=('75d57726e5f98b68bd9653e9db87110f4d2f007c14fd2685dc382fc5ca3bbbd1204f3cac497eec4c41155e1d50a3f46682caee223d2e7d0e996d84b7f182211b'
'73fa793d92ef60e052b82776e89316024fbe46634a695516820b0f2740727c92e94da72f318bb22817686e53f827106ce3048126852c23608295464d90ee4b6d'
'c982aea8a23d6259069f97a8a71f74270811488818ad0e5c8496047f94cf357d64fe3267f04628030d6b766dc3dd62d5d56ab0387e4ad5bd943a7e7a39598669')
prepare() {
# rename the original directory to something sane and remove an OSX directory
mv "neXt" "${pkgname}"
cd "${srcdir}/${pkgname}"
tail -n 2 ReadMe.txt > License.txt
# Remove OSX stuff
find . -type f -name ".DS_Store" -exec rm {} \;
}
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/pixmaps/${pkgname}.png"
msg2 "Installing ${pkgname}.desktop file..."
install -Dm644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
msg2 "Installing start script..."
install -Dm775 "${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
msg2 "Installing LICENSE file..."
install -Dm644 ${srcdir}/${pkgname}/License.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|