blob: 4f86d800735fdf841773a185bed1d39d695a73d4 (
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
|
# Maintainer: Marc Mettke <mettke@itmettke.de>
pkgname=jetbrains-mps
_pkgname=mps
_pkgver=2017.3
pkgver=${_pkgver}.5
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' 'bash')
optdepends=('python: support for scripts like restart.py')
source=("https://download.jetbrains.com/mps/${_pkgver}/MPS-${pkgver}.tar.gz")
sha256sums=('efb8a6bd93111adc548209bba27d6498f75789f2ec9f5979101c4329696e9afc')
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}"
}
|