blob: 96613ec34490d44d39f9bacc7f1719607a69e51a (
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
|
# Maintainer: Marc Mettke <mettke@itmettke.de>
pkgname=jetbrains-mps
_pkgname=mps
_pkgver=2020.1
pkgver=${_pkgver}.3
pkgrel=1
pkgdesc="JetBrains Meta Programming System"
arch=('any')
url="http://www.jetbrains.com/mps/index.html"
license=('custom: MPS license agreement')
depends=('java-environment' 'libxslt' 'gtk2' 'libglvnd' 'libxtst' 'alsa-lib')
optdepends=('python: support for scripts like restart.py'
'ffmpeg0.10: Multimedia plugin')
source=("https://download.jetbrains.com/mps/${_pkgver}/MPS-${pkgver}.tar.gz")
sha256sums=(
'5ffb82d21b5642cee5e0095d496d1cf05412f183e5203c60bd87d84d06c29bd9'
)
build() {
cd "${srcdir}"
echo "#!/bin/sh" > mps
echo "JDK_HOME=/usr/lib/jvm/java-8-jdk /opt/${pkgname}/bin/mps.sh" >> mps
}
package() {
(
cat <<EOF
[Desktop Entry]
Type=Application
Version=1.0
Name=${_pkgname}
GenericName=${pkgname}
Comment=${pkgdesc}
Icon=/opt/${pkgname}/bin/MPS_128.png
Exec="/usr/bin/${_pkgname}" %f
Terminal=false
Categories=Development;IDE;
StartupNotify=true
StartupWMClass=${pkgname}
EOF
) > ${srcdir}/${pkgname}.desktop
mkdir -p "${pkgdir}/opt/"
mkdir -p "${pkgdir}/usr/bin/"
mkdir -p "${pkgdir}/usr/share/applications/"
mkdir -p "${pkgdir}/usr/share/pixmaps/"
mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
mv "${srcdir}/MPS ${_pkgver}" "${pkgdir}/opt/${pkgname}"
install -Dm 755 "${srcdir}/mps" "${pkgdir}/usr/bin/mps"
install -m 644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/"
ln -s "/opt/${pkgname}/license/mps_license.txt" "${pkgdir}/usr/share/licenses/${pkgname}"
}
|