archrelease: copy trunk to community-any
[ArchLinux/community.git] / mellite / repos / community-any / PKGBUILD
blobe5b8772b230ec34aa8ac8f86902eebcf53f0eb53
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 _name=Mellite
4 _app_name=de.sciss.mellite.Mellite
5 pkgname=mellite
6 pkgver=3.13.7
7 pkgrel=1
8 pkgdesc="An environment for creating experimental computer-based music and sound art"
9 arch=(any)
10 url="https://www.sciss.de/mellite/"
11 license=(AGPL3)
12 groups=(pro-audio)
13 depends=(
14   hicolor-icon-theme
15   'java-environment>=16'
16   sh
17   supercollider
19 makedepends=(
20   gendesk
21   sbt
23 source=(
24   $pkgname-$pkgver.tar.gz::https://github.com/Sciss/$pkgname/archive/refs/tags/v$pkgver.tar.gz
25   $pkgname.sh
27 sha512sums=('011a59c57eb3ae6708f4595996d9e167ec5318a620b639525bb1d11e656e8291070f084f055096891545f9aed0e28dbdfdef5874b01294e87c861fcf47f11008'
28             '1a6a572b4c365cdad87930bef805afa229b329cb2ceefb6b9ce42b233ab86f768ae3e3d5fd7cac1129786878c38fd891015aaf6637d9bd7b5ce3b2ef5fe9d30b')
29 b2sums=('f0984d21ac6098eb62bb5a871f2a87ef8be160317b61179a42dd1c580dd44afb4fb71cb8c201dae2f22dc6746278ed77bb3c685a307bd9efe7155b69f76731ea'
30         '4f1fd83d7cf5561e76f746860e5436e7dfab9bd50ad103f499b82de99a67034122f0e8e99e6a58574d6611585d63b2976e5d31979c7233294464683c86cce3ea')
32 prepare() {
33   gendesk -n \
34           --pkgname "$_app_name" \
35           --name "Mellite" \
36           --pkgdesc "${meter_types[$type]}" \
37           --exec "$pkgname" \
38           --icon "$_app_name" \
39           --genericname "Audio Programming" \
40           --categories "AudioVideo;Audio"
43 build() {
44   cd $_name-$pkgver
45   sbt +mellite-app/test +mellite-app/assembly
48 package() {
49   install -vDm 644 $_name-$pkgver/app/$_name.jar -t "$pkgdir/usr/share/scala/$pkgname"
50   install -vDm 644 $_name-$pkgver/icons/application.png "$pkgdir/usr/share/icons/hicolor/256x256/apps/de.sciss.mellite.Mellite.png"
51   install -vDm 644 $_name-$pkgver/icons/application.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/de.sciss.mellite.Mellite.svg"
53   install -vDm 755 $pkgname.sh "$pkgdir/usr/bin/$pkgname"
54   install -vDm 644 *.desktop -t "$pkgdir/usr/share/applications/"