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

pkgname=nimsynth-git
_pkgname=nimsynth
pkgver=r154.57d4e56
pkgrel=1
pkgdesc="A modular synth and sequencer made with Nim"
arch=('x86_64')
url='https://github.com/ftsf/nimsynth'
license=('GPL3')
provides=('nimsynth')
depends=('glibc')
makedepends=('git' 'nim' 'nimble')
source=("nimsynth::git+${url}")
sha256sums=('SKIP')

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

build() {
  cd "${_pkgname}"
  nimble -y install sndfile nico
  make
}

package() {
  cd "${_pkgname}"
  install -Dm755 synth "${pkgdir}/usr/bin/${_pkgname}"
}