blob: 16036ab093bcdcf03cb479f6e32055d842f00c0f (
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
|
# Maintainer: Utku Helvacı <utku.helvaci.tux@gmail.com>
pkgname="midis2jam2-bin"
pkgver="1.10.1"
pkgrel="1"
pkgdesc="🎶 A remaster of MIDIJam, a 3D MIDI file visualizer."
arch=("aarch64" "x86_64")
license=('GPL3')
url="https://github.com/wyskoj/midis2jam2"
depends=('java-environment-common')
conflicts=("midis2jam2")
provides=("midis2jam2")
case "$CARCH" in
arm64) _pkgarch="linux_arm64"
;;
x86_64) _pkgarch="linux_x64"
;;
esac
source=('https://raw.githubusercontent.com/wyskoj/midis2jam2/cd68e0e950e63065821c495be58be370edf70367/.idea/icon.svg'
'midis2jam2-pre'
'midis2jam2.desktop')
source_x86_64=("https://github.com/wyskoj/midis2jam2/releases/download/v$pkgver/midis2jam2-$_pkgarch-$pkgver.jar")
source_aarch64=("https://github.com/wyskoj/midis2jam2/releases/download/v$pkgver/midis2jam2-$_pkgarch-$pkgver.jar")
#comment out the line above and undo the line below when running makepkg -g and makepkg --printsrcinfo on x86_64 platform
#source_aarch64=("https://github.com/wyskoj/midis2jam2/releases/download/v1.9.0/midis2jam2-linuxArm64-$pkgver.jar")
sha512sums=('b2d82ffe943cae60cffa9f89a200f6f33b02e036f564751ce93e51e239e51dbe11279d7b7ac2677875baf76729968328f429b3a67a745e356b2665e46a3818de'
'77615a9bd4b61c64c0162375be12241b8b69912bcfc6e6af0a6afb95a29cd5b7d07e06c1f889252bdfaa950c09a4471e6705e5a6c6712a030f7c5fa3ee2167ea'
'd362c90ff8d1a3f5dec103b00ef2c81b9eece514f1b7aed3afcf5471f38406ea2d08fc6383d11b59f7ca89812a28452dd2a8e4086b3ca704de537215e6d0c6a7')
sha512sums_aarch64=('5ea61bcce8dbd35ef7945bdf7533a9c05ccd2e72307cd357bb9b7471a8f7b255647976d29aee9c08f45fae2dcb4858efdacc1eda1f33efc5343fa387e9d73298')
sha512sums_x86_64=('05f1e728d10586680c2bf4a8c97bf4d98851bfca89a12787899cd7ae9688f5bd9e7c4b01421ee75150d354de374ab7fbe43d17471274689d5619fd2d64993119')
noextract=("midis2jam2-$_pkgarch-$pkgver.jar")
prepare() {
cp -L -rf "$srcdir"/midis2jam2-pre "$srcdir"/midis2jam2
echo 'java -jar /usr/lib/midis2jam2-'"$_pkgarch"'-'"$pkgver"'.jar' >> "$srcdir"/midis2jam2
}
package() {
install -Dm755 "$srcdir"/icon.svg "$pkgdir"/usr/share/icons/hicolor/scalable/apps/midis2jam2.svg
install -Dm755 "$srcdir"/midis2jam2.desktop "$pkgdir"/usr/share/applications/midis2jam2.desktop
install -Dm755 "$srcdir"/midis2jam2-"$_pkgarch"-"$pkgver".jar "$pkgdir"/usr/lib/midis2jam2-"$_pkgarch"-"$pkgver".jar
install -Dm755 "$srcdir"/midis2jam2 "$pkgdir"/usr/bin/midis2jam2
}
|