summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 195faac31d05c303c32bd0a4c55eaede9c7b1583 (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
# Maintainer: Alex Hirzel <alex at hirzel period us>

pkgname=capella-bin
provides=(${pkgname%-bin})
pkgver=7.0.0.202407091438
pkgrel=2
pkgdesc='Model-Based Systems Engineering tool that implements the Arcadia method.'
arch=('x86_64' 'aarch64')
depends=(
	'alsa-lib'
	'bash'
	'java-runtime'
	'perl'
	'python'
	'libx11'
	'libxext'
	'libxi'
	'libxrender'
	'libxtst'
)
makedepends=('gendesk')
url="https://mbse-capella.org/"
license=('EPL-2.0')

# main tarball
_name_tgz="${pkgname%-bin}-${pkgver}-linux-gtk-${arch}.tar.gz"
source_x86_64=("https://mirror.umd.edu/eclipse/${pkgname%-bin}/core/products/releases/${pkgver:0:5}/${_name_tgz}")
source_aarch64=("${source_x86_64[@]}") # copy of the other one
sha512sums_x86_64=('a1da02b436fac1921308f540aed7e687189f1881a797f8579a1e45fdf344735d4a0a2cbf5c97f30f3ec42fbed6da596dc22fb23fc2bb7a1960a021308fc47f79')
sha512sums_aarch64=('cc42e68784fe066567cf5202209be15d3016834232be128e06d04b2260ea598b29f432237ae572177a81d7b6b118db62ac47f1926f45703545da62727921b693')

# icon from GitHub
source=("${pkgname%-bin}.png::https://raw.githubusercontent.com/eclipse-capella/capella/refs/heads/master/releng/plugins/org.polarsys.capella.rcp/icons/Capella256x256.png")
sha512sums=('a8d33103d5adc0ffb76eb99692bfa055bafcfc292616cc4def3a3a7eeef4e04413b5d74c4df67471a1b0084c47d0068cf57bf9b6afa27bb86bac4f284fa71c9a')

prepare() {
	gendesk -f -n --pkgname "${pkgname%-bin}" --pkgdesc "${pkgdesc}"
}

package() {
	mkdir -p "${pkgdir}/opt" "${pkgdir}/usr/bin"
	mv ${srcdir}/${pkgname%-bin} "${pkgdir}/opt"
	ln -s "/opt/${pkgname%-bin}/${pkgname%-bin}" "${pkgdir}/usr/bin"
	install -Dm644 "${pkgname%-bin}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
	install -Dm644 "${pkgname%-bin}.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-bin}.png"
}