summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 44f6ceb9c55c2314d3a0f5157b88644403ec5608 (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
# Maintainer: Iván Zaera Avellón <ivan.zaera@posteo.net>

pkgname=midica
pkgver=1.5.11
pkgrel=1
pkgdesc="A Music programming language. Translates source code into MIDI. Includes a player. Supports MIDI-Karaoke. Includes a MIDI analyzer"
arch=('any')
url='http://www.midica.org'
license=('MPL2')
depends=('java-runtime>=7' 'bash')
makedepends=('gendesk')
source=("${pkgname}-${pkgver}.jar::https://github.com/truj/midica/releases/download/${pkgver}/midica.jar")
sha256sums=("c0a94d2effb28be7609e1dcd444d750c30e0216db00b1d288c2e6b4c02873584")

package() {
  install -Dm644 ${pkgname}-${pkgver}.jar -t "${pkgdir}/usr/share/java/${pkgname}"
  install -Dm644 org/midica/resources/app-icon.png "${pkgdir}/usr/share/pixmaps/midica.png"
  echo "#!/bin/sh
  exec /usr/bin/java -jar '/usr/share/java/${pkgname}/${pkgname}-${pkgver}.jar' "\$\@"" > midica.sh
  install -Dm755 midica.sh "${pkgdir}/usr/bin/midica"
  gendesk -f -n --pkgname "${pkgname}" \
          --pkgdesc "$pkgdesc" \
          --name "Midica" \
          --comment "$pkgdesc" \
          --exec "${pkgname}" \
          --categories 'Utility;AudioVideo;Application' \
          --icon "${pkgname}"
  install -Dm644 "${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
}