summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c02fae386168447da5ab78c67ba9ca410ea11ae8 (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
46
47
48
49
50
51
# Maintainer: yustin <#archlimux-proaudio@libera.chat>

pkgname=rju-git
_pkgname=rju
_commit=8d86d170
pkgver=r220.8d86d170
pkgrel=1
pkgdesc='JackAudioToolkit'
arch=( 'x86_64' )
url='https://rohandrape.net/?t=rju'
license=( 'gpl' )
depends=( 'jack' 'asciidoc' 'libsamplerate' 'liblo' 'libsndfile' )
conflicts=( 'rju' )
source=( "git+https://gitlab.com/rd--/rju#commit=${_commit}"
         vstsdkpath.patch
         xrealloc.patch
         jack.plumbing
       )
  
sha256sums=( 'SKIP'
             '11dfd9a08f916f3f03904b59ae3c49df4686a1ba86baa7b27773e050ed62380b'
             'fe261c0185256ff4a698f0a6e25a2789d197972863b3f17158af44a4452119f0'
             '6974f25a6d3ad988564fe307f92e3a70d919dc20b06b14c2d8e4299fdbfd75ba'
           )

prepare() {
  cd ${srcdir}/${_pkgname}/cmd
  patch -p0 < ${startdir}/vstsdkpath.patch
  git submodule update --init --recursive
  patch -p0 < ${startdir}/xrealloc.patch
}

build() {
  cd ${srcdir}/${_pkgname}/cmd
  make all -j1
 
  cd ${srcdir}/${_pkgname}/md
  for i in *.md ; do asciidoc $i; done
}

package () {
  mkdir -p ${pkgdir}/usr/{bin,include,share/rju}
  cd ${_pkgname}/cmd
  make install prefix=${pkgdir}/usr
  cd ../md
  cp -r *.html announce/ ${pkgdir}/usr/share/rju
  cp ${startdir}/jack.plumbing ${pkgdir}/usr/share/rju/rju.plumbing.example
}

# vim: ts=2 sw=2 et: