summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cb8c7d5fdbc346a3dd1f2bb3c67dc490ac57a029 (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=23.09
pkgrel=2
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=('65cc0ab68a536fc33fc02a84c416725523a82745e100356efd9ff890b43bfcd0'
            '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"
}