summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ca09190ad8b243b4862aad53150f66610a5f3b1d (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
# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com>

pkgname=moodyrain-git
_pkgname=moodyrain
pkgver=r11.9eded08
pkgrel=1
pkgdesc="Generate custom ambient soundscapes on Linux"
arch=('any')
url='https://github.com/glutanimate/MoodyRain'
license=('GPL3')
provides=('moodyrain')
depends=('yad' 'sox' 'vorbis-tools')
makedepends=('git')
source=("moodyrain::git+${url}")
sha256sums=('SKIP')

pkgver() {
  cd moodyrain
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd moodyrain
  install -d "${pkgdir}/opt/MoodyRain" "${pkgdir}/usr/bin"
  cp -avR sounds icons moodyrain "${pkgdir}/opt/MoodyRain"
  ln -s /opt/MoodyRain/moodyrain "${pkgdir}/usr/bin/moodyrain"
  gendesk -f -n --pkgname "${pkgname%-git}" \
          --pkgdesc "$pkgdesc" \
          --name "MoodyRain" \
          --comment "$pkgdesc" \
          --exec "${pkgname%-git}" \
          --categories 'Utility;Audio;AudioVideo' \
          --icon preferences-desktop-multimedia
  install -Dm644 moodyrain.desktop -t "${pkgdir}/usr/share/applications/"
  install -Dm644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
}