summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 33d60ad992ea0c814500ddf0fa61eba6335603f4 (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
# Maintainer: Laura Demkowicz-Duffy <dev@demkowiczduffy.co.uk>
pkgname=openrocket-beta-bin
_pkgname=openrocket
pkgver=24.12.beta.01
pkgrel=1
pkgdesc="A free and fully featured rocket flight simulator - 6 degrees of freedom, prerelease"
arch=('any')
url="https://openrocket.info/"
license=('GPL-3.0-or-later')
depends=('java-runtime=17' 'bash')
makedepends=('desktop-file-utils')
provides=(openrocket)
conflicts=(openrocket)
source=("https://github.com/$_pkgname/$_pkgname/releases/download/release-$pkgver/OpenRocket-$pkgver.jar"
	"$_pkgname.sh"
	"de_debian.tar.gz")
noextract=("OpenRocket-$pkgver.jar")
sha256sums=('f7f31b34dbbee6a9848d0fd4d84976f95464ac12be8bc04aee3d1b1027315ea4'
            '74ab605cb11161784d4af96d018eb88adf7a2e4a8b1088a64b94b1e8ec5e18d1'
            '62c4e739f82fa53fdae8a41f12bfb2828b77df89c8f48b1a790192a8e773cb98')

check() {
	desktop-file-validate "$srcdir/de_debian/$_pkgname.desktop"
}

package() {
	cd "$srcdir"
	install -Dm0755 "OpenRocket-$pkgver.jar" "$pkgdir/usr/share/java/$_pkgname/$_pkgname.jar"
	install -Dm0755 "$_pkgname.sh" "$pkgdir/usr/bin/$_pkgname"

	install -Dm644 de_debian/$_pkgname.1 "$pkgdir/usr/share/man/man1/$_pkgname.1"
	find "$pkgdir/usr/share/man/man1" -name *.1 -exec gzip -9 {} +

	install -Dm644 de_debian/$_pkgname.desktop "$pkgdir/usr/share/applications/$_pkgname.desktop"
	install -Dm644 de_debian/$_pkgname.xpm "$pkgdir/usr/share/pixmaps/$_pkgname.xpm"
}